After doing some research, I found out that this is the correct way:
/summon Entity ~ ~ ~ {HandItems:[0:{...},1:{...}],ArmorItems:[0:{...},1:{...},2:{...},3:{...}]}
After doing some research, I found out that this is the correct way: