Skip to content

seems im not able to parse a json template with escaped quotes #328

Description

@amassillo

Hi there!
Im looking for help :)
So I have a mongo document storing liquid markup expressions

"settings" : { "src" : "{{location.name}}", "href" : "visit us: {% if location.website !='' %}{{location.website}}{%else%}{{location.url}}{% endif %}", "exp" : "{% assign cf = location.tags | where: \"name\",\"Market\" | first %}{{cf.data}}" },

When i stringify the whole node and try to parse it, im getting ""Error: tag "{% assign cf ..." not closed, probably related to the escape im doing for storing the expression on db
Any ideas about how could i get it working? If i process each key-val separately it works just fine

Thanks in advance
Ale

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions