Page tree
Skip to end of metadata
Go to start of metadata

N.B.: Using this node requires the WSF license option.

Set a JSON attribute entry.

Parameters

  • Display name : the name of the node as it will appear in the Workflow. Replaces the term “JSON Attribute Set”.
  • JSON Attribute Name : JSON attribute to modify. If attribute does not exist, it will be created.
  • JSON Pointer : value of JSON Pointer used to insert the value. 

    JSON Pointer is a standard syntax (RFC6901) used to select a value in a JSON Doc. A JSON Pointer points a single value.

    A JSON Pointer is a list of 0 to n token, each prefixed by /. Each token can be a character string or a number. See some examples.

  • Value's Type :  
    • Null: "null" value, corresponding with a JSON empty type, will be added.
    • Boolean: "true" or "false" value will be added.
    • Number (Int)

      Expression can be used ( ex: ${calc(time(),'/',1000000)} to get a timestamp in seconds.

    • Number (Double)
    • String: value will be added as a data type 'String' in the JSON document.

      JSON Pointer: /user
      Value's Type: String
      Value: support

      will create a JSON document: {"user": "support"}

      An expression can also be used (ex: ${http.request.query.vars['email']}).

    • JSON: this type allows to insert all JSON data types (null, Boolean, Number, String, Array, Object) 

      JSON Pointer: /user
      Value's Type: JSON
      Value: "support"

      will create a JSON document: {"user": "support"}

      JSON Pointer: /user
      Value's Type: JSON
      Value: {"email":"support@denyall.com"}

      will create a JSON document: { "user": { "email": "support@denyall.com" } }.

      JSON Pointer: /cities
      Value's Type: JSON
      Value: ['Paris', 'NY', 'Berlin']

      will create a JSON document: { "cities": ['Paris', 'NY', 'Berlin'] }.

    • JSON Attribute: add a workflow JSON attribute previously defined.

Required attributes

This node requires no attribute.

Provided attributes

This node provides "json.failure" and "json.err_message" attributes. The "json.failure" attribute (Boolean) will be set to "trueif a processing error occurs. The "json.err_message" attribute will then be filled in to provide a message about the error that was raised.

When a processing error occurs, if the JSON attribute specified in "JSON Attribute Name" did not exist, attribute will be created anyway but with null value (corresponding with a JSON empty type). If the JSON attribute specified in "JSON Attribute Name" did exist, attribute will not be modified.

 

  • No labels