The JSON viewer is a tool designed to display a JSON string in a structured and user-friendly format. Instead of viewing JSON as a string, which can be hard to read, the viewer presents the data in a clean, tree-like structure. This format simplifies exploring key-value pairs, arrays, and nested objects. The Viewer allows users to collapse or expand sections of the JSON, helping them focus on the parts of the data you need.
For example, here’s what a JSON file looks like when displayed in the JSON viewer:
This widget is useful for inspecting JSON web service request messages before sending them or for examining incoming web service responses.
The JSON Viewer has two properties. Only the "JSON data" field is required, which expects an expression resulting in a text string.
The Appearance property allows you to set the maximum height of the viewer window in pixels by entering a number.
Property Name
Data type
Type
Description
Type of input
Text
Dropdown
To select the type of file. (File field, library field, URL to file).
File field
File
Expression
To set the file in the field.
Library file
File
To set the library file in the field.
URL to file
Text
Expression
To set URL into the file.
Initial zoom
Number
Expression
Set the initial zoom for the pdf viewer.
Border width
Number
Expression
Set border width for the pdf viewer.
Height
Number
Expression
Set the height of the PDF Viewer canvas in number of pixels. Leave empty for 100% width.
Width
Number
Expression
Set the width of the PDF Viewer canvas in number of pixels. Default is 400px.