Class: JSONPretty

gx. JSONPretty

Outputs JSON data as pretty-print.

Constructor

new JSONPretty()

Members

(static) toFile

If true, a newline character will be used instead of html breaks.

(static) useTabs

If true and outputting to a file, the data will be outputted with tabs instead of four spaces.

Methods

(static) prettyPrint(jsonData) → {String}

Outputs your JSON stringified data in pretty-print.
Parameters:
Name Type
jsonData Object | String
Returns:
Type
String