Zoomed Image

AMSX Scripting Language - Command : LoadJson

Summary

Parse a JSON string into the AMSX JSON object for subsequent JsonValue or JsonSelect operations

Description

Parses the supplied JSON string and stores it as the active AMSX JSON token. Use $result$ as cmd to parse whatever is currently in the result buffer. Call PreserveQuotes before this command if the JSON string is passed as a script parameter, to prevent the parser from mangling quote characters.

Parameters

ParameterDescription
cmdJSON string to parse, or $result$ to parse the current result buffer

Syntax


LoadJson "JSON string to parse, or $result$ to parse the current result buffer"

Return to the AMSX Command Reference