Skip to main content

JSONout Node

The JSONout Node gets elements from the input Nodes, composes the elements to JSON objects (except arrays), serialises JSON messages, writes the JSON messages to an output Topic.

JSONout Node
JSONout Node

The JSONout Node has one empty output Port by default. The empty Port allows to transmit the entire JSON message to the output.

Composed JSON message
Composed JSON message

The example above shows the input Ports of the JSONout Node consuming the values of the different data types.

  • The JSON Port consumes the entire JSON message as an object.
  • The Object1.(...) Ports consume the values of 4 elements of different data types and compose the elements to Object1. To compose objects from elements the fx button in the input field should be activated.
  • The Object2 Port consumes the entire nested object.
  • The Array1 and Array2 Ports consume the arrays of objects and elements.
  • The Element5 Port consume the element of any data type.
Mind the Ports!

The user decides which Ports to use. The unused Ports should be hidden or deleted. To hide a Port click the "Eye" button in the Port's input field. To delete a Port drag the button to the left of the input field.