from_json

Does the opposite of https://plate.atlassian.net/wiki/spaces/DOCS/pages/30605457/to_json :

Provide JSON to the filter and it will return an object with variables.

Input:

1 2 3 4 5 6 7 8 {% 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.