ParseJSON
Parse a given JSON string "value" to a representative object. Example: '{"a": "value"}' => {"a": "value"}.
- Type
- javascript
- Pack
- FiltersAndTransformers
Source
var value = args.value;
try {
return JSON.parse(value);
} catch(err) {
return err;
}
return null;
README
Parses a given JSON string “value” to a representative object.
Example: {"a":"value"} => { “a”: “value”}.
Script Data
| Name | Description |
|---|---|
| Script Type | javascript |
| Tags | transformer, string |
Inputs
| Argument Name | Description |
|---|---|
| value | The string value to convert to JSON. |
Outputs
There are no outputs for this script.