Fix json array of objects packing