JsonTree.js - Documentation - Options

Below is the JSON format and properties that can be used for the configuration options.

Download Now

v0.8.0 - 20th Mar 2024
JSON Properties

Options:

Type: Name: Description:
boolean safeMode States if safe-mode is enabled (errors will be ignored and logged only, defaults to true).
Object highlightAllDomElementTypes The DOM element types to lookup (can be either an array of strings, or a space separated string, and defaults to "*").

Options - Strings:

Type: Name: Description:
string objectText The text that should be shown for the "object" label.
string arrayText The text that should be shown for the "array" label.
string closeAllButtonText The text that should be shown for the "Close All" button text.
string openAllButtonText The text that should be shown for the "Open All" button text.
string copyAllButtonText The text that should be shown for the "Copy All" button text.
string objectErrorText States the error message that should be shown for object parsing errors (defaults to "Errors in object: {{error_1}}, {{error_2}}").
string attributeNotValidErrorText States the error message that should be shown for attributes errors (defaults to "The attribute '{{attribute_name}}' is not a valid object.").
string attributeNotSetErrorText States the error message that should be shown for attribute not errors (defaults to "The attribute '{{attribute_name}}' has not been set correctly.").