Skip to content

What's New

Platform 2018.11.26

Platform · 2018.11.26 · 26 November 2018

ImprovementNew FeatureOn production sites

On production sites

This release makes it easier to work with JSON in Liquid.

Parse JSON with a tag

Before, keeping your JSON tidy and formatted meant using capture. The new parse_json tag does both jobs. Put your JSON between {% parse_json car %} and {% endparse_json %}, and you get a hash you can loop over and change with filters. This helps when you want to go through a JSON config or change its structure.

The to_hash filter is now parse_json

The to_hash filter was renamed parse_json. It works the same way. To keep your existing code working, to_hash still works.