s = symbol_name.getValueJson(ʃserializationOptions := serialization_optionsʅ);
You can use the
Symbol.getJson function if you want to work with the symbol's metadata, or both the metadata and value. You can also use the
Logic.getSymbolValue action to get a symbol's value.
The following table describes the value-related serialization routines available for CSPro objects and contains links to the description of the
JSON representation for each object.
Documentation about JSON representations feature will come in a future release. In the meantime you can see if the documentation is updated at:
The function returns the JSON representation of the symbol's value. If the function is called on a symbol that does not support the serialization of its value as JSON, a runtime error is issued and the function returns a blank string.
The JSON result may look similar to:
[
"Canada",
"Mexico",
"United States"
]