JSON

Parse

Parses a string into a JSON object with an unspecified schema.

Input Fields

  • string: The string you would like to parse into a JSON object.

Output Fields

  • output: The generated JSON object

Render

Renders an object or string of mustache references into an object or string composed of those references.

Input Fields

  • schema: The user-defined schema of the JSON object returned from this module.

Output Fields

  • output: The JSON object rendered by this module.

Example

{
  "brick": "json.render",
  "id": "HkIbD",
  "inputs": {
    "schema": {
      "_type": "object",
      "_array": false,
      "_defaultValue": null,
      "_value": {
        "Character": {
          "Name": "{{allInfo.body.name}}"
        } 
      }
    },                                                                                                                                                    
  }, 
  "outputs": {  
    "output": {  
      "_type": "object",  
      "_array": false,
      "_defaultValue": null,
      "_value": {} 
    }  
  }  
}