The goog.format.JsonPrettyPrinter.TextDelimiters Class

goog.format.JsonPrettyPrinter.TextDelimiters()

A container for the delimiting characters used to display the JSON string to a text display. Each delimiter is a publicly accessible property of the object, which makes it easy to tweak delimiters to specific environments.

.arrayEnd {string}

Represents the end of an array in the output.

.arrayStart {string}

Represents the start of an array in the output.

.indent {number}

Represents the number of spaces to indent each sub-property of the JSON.

.lineBreak {string}

Represents a newline character in the output. Used to begin a new line.

.nameValueSeparator {string}

Represents the string used to separate property names from property values in the output.

.objectEnd {string}

Represents the end of an object in the output.

.objectStart {string}

Represents the start of an object in the output.

.postName {string}

A string that's placed after a property name in the output. Useful for wrapping a property name in an html tag.

.postValue {string}

A string that's placed after a property value in the output. Useful for wrapping a property value in an html tag.

.preName {string}

A string that's placed before a property name in the output. Useful for wrapping a property name in an html tag.

.preValue {string}

A string that's placed before a property value in the output. Useful for wrapping a property value in an html tag.

.propertySeparator {string}

Represents the string used to separate properties in the output.

.space {string}

Represents a space character in the output. Used to indent properties a certain number of spaces, and to separate property names from property values.