Skip to content

Language Reference ‐ Json Library

Andreas AFENTAKIS edited this page Nov 2, 2025 · 1 revision

Language Reference ‐ Json Library

The Json Library in FAST.FBasic offers minimal support for Json operations, enabling advanced data access and data manipulation within programs.

Json Statements

The List of Statements in the Library:

  1. JSON
  2. Planned Statements (more will come soon)

JSON

Json statement is used to Serialize and De-serialize Instances of Objects in and from string variables.

Syntax

JSON variable_string|value [DYNAMIC] FROM|TO variable_object
  • variable_string: A variable containing string data.
  • value: A string value.
  • Specifier: FROM or TO, or DYNAMIC FROM or DYNAMIC TO
  • variable_object: A variable is a value of type Object.

Behavior

Specifier Action Description
FROM Serialize Serialize the object of the variable variable_object into string variable variable_string
TO Deserialize Using the variable variable_string or the value deserializes the json content to the variable_object. To perform this serialization the type of the object is necessary. So, the serialization will performed by the invoker application (the app that runs the interpreter) using the Request For Object Handler.
DYNAMIC FROM Serialize Serialize the object of the variable variable_object into string variable variable_string, the object is converted to expando dynamic object and the is serialized
DYNAMIC TO Deserialize Using the variable variable_string or the value deserializes the json content to the variable_object. This serialization is creating an expando dynamic object. No implication of the Request For Object Handler is needed.

Clone this wiki locally