deserialize - Liquid Filter Reference
On this page
Description
Deserializes a JSON string.
| Property | Value |
|---|---|
| Return Type | any |
| Category | text |
Examples
liquid
{% assign data = '{"name":"Dog & Cat"}' | deserialize %}
{{ data.name }}
Output: Dog & Cat
Type at least 3 characters · ↵ for full results · Esc to close
Deserializes a JSON string.
| Property | Value |
|---|---|
| Return Type | any |
| Category | text |
liquid
{% assign data = '{"name":"Dog & Cat"}' | deserialize %}
{{ data.name }}
Output: Dog & Cat