Skip to content
Log in

serialize - Liquid Filter Reference

On this page

Description

Serializes the collection as a JSON string

Property Value
Return Type string
Category collections
Alias json

Examples

liquid {{ pets | serialize }}

Output: [{"name":"Fido","type":"dog"},{"name":"Mittens","type":"cat"}]

Was this article helpful?

Was this article helpful?