Create arrays for objects instead of json strings