Component: JSON Encoder ( Comms): Difference between revisions
Appearance
m Text replacement - "class="wikitable" style="width:60%; background-color:#FFFFFF;"" to "class="mtx-class-macrotable wikitable"" |
m Text replacement - "width="10%" align="center" style="background-color:#D8C9D8;" align="center"" to "width="10%" align="center" class="mtx-class-macrohead"" |
||
| Line 40: | Line 40: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''AssignDataAsFloat''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''AssignDataAsFloat''' | ||
|- | |- | ||
| Line 64: | Line 64: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''AssignDataAsNumber''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''AssignDataAsNumber''' | ||
|- | |- | ||
| Line 88: | Line 88: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''AssignDataAsString''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''AssignDataAsString''' | ||
|- | |- | ||
| Line 112: | Line 112: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ClearAll''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ClearAll''' | ||
|- | |- | ||
| Line 126: | Line 126: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''GenerateJSON''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''GenerateJSON''' | ||
|- | |- | ||
Revision as of 14:17, 13 July 2026
| Author | |
| Version | 0.1 |
| Category | Comms |
JSON Encoder component
Allows dynamic key and value pairs to be created and assembled into a formatted JSON string.
Component Source Code
Please click here to download the component source project: FC_Comp_Source_WEBEXP_JSONEncoder.fcsx
Please click here to view the component source code (Beta): FC_Comp_Source_WEBEXP_JSONEncoder.fcsx
Detailed description
No detailed description exists yet for this component
Examples
Simple Data
Example program showing how to use a JSON encoder component to create a simple JSON encoded data string.
Macro reference
AssignDataAsFloat
| AssignDataAsFloat | |
| Assigns a data value as a floating point number | |
| Key | |
| Key name for the data | |
| Value | |
| Value of the data | |
| Return | |
AssignDataAsNumber
| AssignDataAsNumber | |
| Assigns a data value as a number | |
| Key | |
| Key name for the data | |
| Value | |
| Value of the data | |
| Return | |
AssignDataAsString
| AssignDataAsString | |
| Assigns a data value as a string | |
| Key | |
| Key name for the data | |
| Value | |
| Value of the data | |
| Return | |
ClearAll
| ClearAll | |
| Clears all the names and data values out of the buffer | |
| Return | |
GenerateJSON
| GenerateJSON | |
| Generates a JSON data string with the current specified values. | |
| Return | |
Property reference
| Properties |