This node allows you to add or update a specific value in a JSON string.

Node Inputs

If “Create JSON” is selected:

  1. Key: The key of json. Note: Enclose in "" if your key contains special characters.
    • Type: Text
  2. Value: The value to be added to the JSON object.
    • Type: Text

If “Update JSON” is selected:

  1. JSON string: The JSON string you want to update
    • Type: Text
  2. Key: The key of json. Note: Enclose in "" if your key contains special characters.
    • Type: Text
  3. Value: The value to be added to the JSON object.
    • Type: Text

Node Parameters

Create JSON vs Update JSON toggle:

  • Create JSON: This will create a new JSON string with the key value pairs provided.
  • Update JSON: This will update the given JSON string with the key value pairs provided.

Node Outputs

  1. Updated JSON: The updated JSON string
    • Type: Text
    • Example usage: {{write_json_value_0.updated_json}}