LiquidJS

TutorialsTagsFiltersPlaygroundAPI
Github Support
Overviewabsappendat_leastat_mostcapitalizeceilcompactconcatdatedefaultdivided_bydowncaseescapeescape_oncefirstfloorjoinjsonlastlstripmapminusmodulonewline_to_brplusprependrawremoveremove_firstreplacereplace_firstreverseroundrstripsizeslicesortsort_naturalsplitstripstrip_htmlstrip_newlinestimestruncatetruncatewordsuniqupcaseurl_decodeurl_encodewhere

json

v9.10.0

Convert values to string via JSON.stringify(), for debug purpose.

Input

{% assign arr = "foo bar coo" | split: " " %}
{{ arr | json }}

Output

["foo","bar","coo"]
Last updated: 2022-05-17 PrevNext
Contents
Back to Top
© 2022 Harttle
Documentation licensed under CC BY 4.0.
    TutorialsTagsFiltersPlaygroundAPI
Overviewabsappendat_leastat_mostcapitalizeceilcompactconcatdatedefaultdivided_bydowncaseescapeescape_oncefirstfloorjoinjsonlastlstripmapminusmodulonewline_to_brplusprependrawremoveremove_firstreplacereplace_firstreverseroundrstripsizeslicesortsort_naturalsplitstripstrip_htmlstrip_newlinestimestruncatetruncatewordsuniqupcaseurl_decodeurl_encodewhere