Skip to content

KAZOO Support Channels

This documentation is curated by 2600Hz as part of the KAZOO open source project. Join our community forums here for peer support. Only features in the docs.2600hz.com/supported space are included as part of our 2600Hz Support Services plan.

monster.ui.renderJSON()#

Syntax#

monster.ui.renderJSON(data, target[, args]);

Parameters#

Key Description Type Default Required
data Data to pretty print. JSON true
target Template on which the method will be applied. It will automatically fill that div with the JSON viewer. jQuery true
args Let you specify a map of options for this helper. Object(#/args) false

args#

Key Description Type Default Required
sort Whether the keys will be sorted alphabetically or not. Boolean false false
level Set the number of level that will be expanded automatically. Number 2 false
them Viewer background them. String('light' | 'dark') light false

Description#

This helper will use the data provided in parameter and show it in a JSON viewer in the UI, in the container provided