--- url: https://developer.youcan.shop/themes/filters/format/json.md --- # Json Converts a value to JSON. Strings, arrays and objects print as JSON. Numbers, booleans and `nil` print as JSON values, without quotes. ## Example ::: details Data ```json { "product": { "title": "Hat", "price": 10, "available": true, "sku": null } } ``` ::: ```liquid ``` ::: tip Output ```html ``` :::