Hashtag Helpers
Parse JSON
Returns value of a JSON string
This hashtag helper allows you to get the value from any valid JSON string.
NOTE
If the string provided cannot be converted to a JSON object, the helper will return the string as is.
Uses
- Use to convert returned data from an API into a JSON object.
- Use to extract a value from a JSON string.
- Use to convert a string into a number.
Usage
Helper name : parse_json
eg.
~~#parse_json#[JSON string]
Examples
Simple JSON String
This shows the use of the Parse JSON Hashtag Helper to convert a JSON string to a JSON object.
Usage Example
Result
Referencing a JSON String
This shows the use of a value inside the data structure that contains the JSON you want to convert.
Consider Data
Usage Example
Result