json - Liquid Filter Reference - 1.1.0
Filter Name | json |
Group | Collections |
Version | 1.1.0 |
Description
Converts the collection to JSON.
Examples
{% new List pets = '[{"id":1,"name":"Dog"},{"id":2,"name":"Cat"}]' %}
{{ pets | json }}
[{"id":1,"name":"Dog"},{"id":2,"name":"Cat"}]
Back to Liquid Reference for 1.1.0
Back to Documentation