The json
statement is used to format JSON in a named buffer.
json format
{buffername}
In many cases an API or other external source will return JSON in a densely packed format which is not easy for the human eye to read. The json
statement is used to re-format JSON data that has been previously loaded into a named buffer (via the buffer statement) into a form that is friendlier to human eyes.
Given the following single packed line of JSON in a named buffer called myJSON:
The following USE script fragment:
will result in the following output: