-
Notifications
You must be signed in to change notification settings - Fork 0
Language Reference ‐ Json Library
Andreas AFENTAKIS edited this page Nov 2, 2025
·
1 revision
The Json Library in FAST.FBasic offers minimal support for Json operations, enabling advanced data access and data manipulation within programs.
The List of Statements in the Library:
- JSON
-
Planned Statements (
more will come soon)
Json statement is used to Serialize and De-serialize Instances of Objects in and from string variables.
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.
| 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. |