Dataguess
v0.3.0
v0.3.0
  • Welcome
  • Getting Started
    • Installation
      • Windows Installation
      • Linux Installation
    • Activation
  • REFERENCES
    • Workstation
    • Workgroup
    • Dataflow
    • Components
      • Core Concepts
        • Scheduler
        • Synchronizing Ports
        • Import / Export Ports
        • Forwarding Inputs
      • Inputs
        • MQTT
        • Modbus TCP
        • Siemens S7
        • OPC UA
        • TwinCAT
        • EtherNet/IP
        • Camera
      • Outputs
        • MQTT
        • Modbus TCP
        • Siemens S7
        • CSV
        • JSON
        • InfluxDB
        • OPC UA
        • TwinCAT
        • Data Watch
        • FTP Client
        • Image Stream
      • Function
        • Math & Logic
        • Array Functions
        • Image Functions
        • Type Conversion
        • To JSON
        • From JSON
        • Array
        • Timer
      • API
        • HTTP
      • Server
        • HTTP Server
      • Script
        • Python Script Editor
      • Ai
        • ONNX
        • Scikit Learn
  • Use Cases
  • FAQ
Powered by GitBook
On this page
  • Node Definitions
  • Input Ports
  • Output Ports
  • Working Example

Was this helpful?

  1. REFERENCES
  2. Components
  3. Function

To JSON

To JSON component lets you create structured JSON outputs by binding input values to fields of your choice

PreviousType ConversionNextFrom JSON

Last updated 3 years ago

Was this helpful?

Node Definitions

To JSON has no unique node definition to be configured, you can give it a name and a description:

Input Ports

You can define input ports to To JSON component, to use their values in your output's json configuration. In your output's json configuration screen, you can click on your input ports to get a text looking like:

getInputValueById('input_port_id')

Therefore, you can define as many input ports as you like, and you can use any of those input ports in any of your outputs

Output Ports

Your output ports will be available for a manual configuration. Once you add your output ports, you will see that you can click on Configure Output button to configure the structured json for that output port

When you click on Configure Output, you will see a screen split to two. On left-hand side you will see your input ports, and on the right-hand side you will see a JSON configuration area.

You can construct your JSON in this configuration area, and you are free to use nested JSONs, arrays, texts, numbers etc. By clicking the copy button near the input ports' name, you can use the input's value in your JSON.

Working Example

Node Definitions
To JSON Input Ports
Output Port Rows
Output JSON Configuration
To JSON Working Example