JSON Dump Block

JSON Dump Block

The JSON Dump block attempts to serialize the inputs to a byte representation of a JSON object

Inputs

  • x (dynamic): data that will be set as values of the output JSON

Outputs

  • bytes: the serialized JSON object as bytes

Parameters

  • Output Keys: The keys to add to the JSON object
    • Data Key: The name of the key that will be added to the JSON object
    • Encoding (Default | String): Select how the data will be encoded for output.
      • Default will attempt to encode to the corresponding numeric type (scalar, array, or matrix)
      • String will encode the the output value as a string. This is particularly useful if the input is bytes data that represents a string. For instance you can encode a JSON string and feed it as the input to another JSON Dump Block.