JSON with curly braces in propertyname

42 views
Skip to first unread message

Gert Vloo

unread,
Sep 28, 2018, 7:12:51 AM9/28/18
to dotliquid
Who does know how to escape curly braces within liquid? 

My JSON object contain properties with curly braces in it, like this: {"{name}" : "John"}.

I've got this error: not properly terminated with regexp: (?-mix:\\}\\})'

Kind Regards,
Gert Vloo

David Kominek

unread,
Dec 3, 2018, 2:26:03 PM12/3/18
to dotliquid
Try accessing the property without the special character. We have had a use case where the json property starts with a $, and dotliquid strips the special characters out leaving only alphanumeric characters for the property name.
Reply all
Reply to author
Forward
0 new messages