Component: JSON Decoder (Comms: IoT/Cloud)
From Flowcode Help
(Redirected from Component: ID 6af7744a 76aa 4522 8cf1 05c8bd34859c)
Jump to navigationJump to searchAuthor | Matrix TSL |
Version | 1.1 |
Category | Comms: IoT/Cloud |
Contents
JSON Decoder component
Allows dynamic key and value pairs to be collected from a formatted JSON string.
Version information
Library Version, Component Version, Date, Author, Info 4, 1.1, 10-10-24, BR, Allowed for better support of nested array data 4, 1.1, 10-10-24, BR, Removed spaces and new lines etc from the stored data 5, 1.1, 02-15-24, BR, Allowed for better support of nested array data for the FindName function
Detailed description
No detailed description exists yet for this component
Examples
Simple Decode
Example program showing how to use a JSON decoder component to parse a simple JSON encoded data string.
JSON Decoder Example
Simple Encode and Decode
Example program showing how to take data and encode it into a JSON string to be sent out over comms.
The example also hows how to decode a received JSON string and pull out values.
Macro reference
FindName
ParseJSON
ReadDataAsFloat
![]() |
ReadDataAsFloat |
Reads the data of a specific element as a floating point value | |
![]() |
Element |
Index of the element to read | |
![]() |
Return |
ReadDataAsNumber
![]() |
ReadDataAsNumber |
Reads the data of a specific element as a numeric integer value | |
![]() |
Element |
Index of the element to read | |
![]() |
Return |
ReadDataAsString
![]() |
ReadDataAsString |
Reads the data of a specific element as a string value | |
![]() |
Element |
Index of the element to read | |
![]() |
Return |
ReadName
![]() |
ReadName |
Reads the name of a specific element | |
![]() |
Element |
The Index of the element to read | |
![]() |
Return |
Property reference
Component Source Code
Please click here to download the component source project: FC_Comp_Source_JSONDecoder.fcfx
Please click here to view the component source code (Beta): FC_Comp_Source_JSONDecoder.fcfx