Currently collections are mapped to JSON arrays, we could map them to JSON objects instead.
Currently collections are mapped to JSON arrays, we could map them to JSON objects instead.