{"title":"json - Liquid Filter Reference","slug":"json-filter-reference","url":"https://support.storeconnect.com/articles/json-filter-reference","url_markdown":"https://support.storeconnect.com/articles/json-filter-reference.md","subtitle":null,"summary":"Converts a collection or object to a JSON string. Also available as the `serialize` alias. Use `json` to pass Liquid data to JavaScript or APIs.","type":"Developer_Documentation","video_url":"","keywords":"liquid, filters, json, collections, storeconnect","last_modified":"2026-08-21T07:12:35+0000","body_markdown":"## Description\n\nConverts the collection to JSON.\n\n| Property | Value |\n|----------|-------|\n| **Return Type** | string |\n| **Category** | collections |\n| **Alias** | `serialize` |\n\n## Examples\n\n\n```liquid\n\n{{ pets | json }}\n```\n\n\n**Output:** `[{\"name\":\"Fido\",\"type\":\"dog\"},{\"name\":\"Mittens\",\"type\":\"cat\"}]`"}