Modifier: is_json


Returns true if string is valid json

data: '{"book": "All The Places You'll Go"}'
{{ if data | is_json }}
true

Additional Reading

Learn how to use and chain modifiers in the Antlers template guide.

Last modified on March 31, 2016