consider this json :
{"globalmacro":{"fields":["globalmacroid","macro","value"],"data":[[2,"{$SNMP_COMMUNITY}","public"]]},"hosts":{"fields":["hostid","host","status","ipmi_authtype","ipmi_privilege","ipmi_username","ipmi_password","name"],"data":[[10105,"webhost",0,-1,2,"","","webhost2"]]}}
Line wrapping triggers on width. The second 'fields' set is really wide (note how it wraps even on this page). That's why it is broken onto multiple lines.
consider this json :
{"globalmacro":{"fields":["globalmacroid","macro","value"],"data":[[2,"{$SNMP_COMMUNITY}","public"]]},"hosts":{"fields":["hostid","host","status","ipmi_authtype","ipmi_privilege","ipmi_username","ipmi_password","name"],"data":[[10105,"webhost",0,-1,2,"","","webhost2"]]}}
"underscore pretty" results in :
notice how the first fields/data block is nicely formatted, but the second one for some reason does 'fields' over multiple lines
i would expect :