Skip to content Skip to footer navigation
🏰 Statamic Summit 2027 Feb 16–19 Talks, workshops, and three nights in a German castle. Get Tickets

Is Json Modifier

Returns true if string is valid json

data: '{"book": "All The Places You''ll Go"}'
{{ if data | is_json }}
@if (Statamic::modify($data)->isJson()->fetch()) ... @endif
true