Add option to format structs as lists in JSON instead of dicts/objects