Swap branch data from array to object to reduce JSON size