JsonTree.js - Documentation - Options

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

Download Now

v2.1.0 - 19th Jul 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:

Category: Type: Name: Description:
text string objectText The text that should be shown for the "object" label.
text string arrayText The text that should be shown for the "array" label.
text string closeAllButtonText The text that should be shown for the "Close All" button text.
text string openAllButtonText The text that should be shown for the "Open All" button text.
text string copyAllButtonText The text that should be shown for the "Copy All" button text.
text string objectErrorText The error message that should be shown for object parsing errors (defaults to "Errors in object: {{error_1}}, {{error_2}}").
text string attributeNotValidErrorText The error message that should be shown for attributes errors (defaults to "The attribute '{{attribute_name}}' is not a valid object.").
text string attributeNotSetErrorText The error message that should be shown for attribute not errors (defaults to "The attribute '{{attribute_name}}' has not been set correctly.").
text string stText The day ordinal text for “st”.
text string ndText The day ordinal text for “nd”.
text string rdText The day ordinal text for “rd”.
text string thText The day ordinal text for “th”.
text string[] dayNames The full day names (defaults to ‘[ “Monday”, “Tuesday”, “Wednesday”, “Thursday”, “Friday”, “Saturday”, “Sunday” ]’).
text string[] dayNamesAbbreviated The abbreviated day names (defaults to ‘[ “Mon”, “Tue”, “Wed”, “Thu”, “Fri”, “Sat”, “Sun” ]’).
text string[] monthNames The full month names (defaults to ‘[ “January”, “February”, “March”, “April”, “May”, “June”, “July”, “August”, “September”, “October”, “November”, “December” ]’).
text string[] monthNamesAbbreviated The abbreviated month names (defaults to ‘[ “Jan”, “Feb”, “Mar”, “Apr”, “May”, “Jun”, “Jul”, “Aug”, “Sep”, “Oct”, “Nov”, “Dec” ]’).
text string ellipsisText The ellipsis text to use for areas that are too long (defaults to "...").
text string closeAllButtonSymbolText The symbol text to use for the "Open All" button (defaults to "↓").
text string openAllButtonSymbolText The symbol text to use for the "Close All" button (defaults to "↑").
text string copyAllButtonSymbolText The symbol text to use for the "Copy All" button (defaults to "❐").
text string backButtonText The symbol text to use for the "Back" button (defaults to "Back").
text string nextButtonText The symbol text to use for the "Next" button (defaults to "Next").
text string backButtonSymbolText The symbol text to use for the "Back" button (defaults to "←").
text string nextButtonSymbolText The symbol text to use for the "Next" button (defaults to "→").