/
from_json
from_json
Does the opposite of to_json :
Provide JSON to the filter and it will return an object with variables.
Input:
{% capture json_string %}
{
"id": 1,
"name": "Joe"
}
{% endcapture %}
{% assign test = json_string | from_json %}
{{ test }}
You can now use test.id
and test.name
in your templating code.
, multiple selections available,
Related content
to_json
to_json
More like this
html_input
html_input
More like this
Filters
Filters
More like this
session
session
More like this
form_input_name
form_input_name
More like this
http_request
http_request
More like this