David GROSPELIER
David GROSPELIER

Reputation: 832

Liquid map error "After parsing a value an unexpected character was encountered"

I have a very simple Liquid map (extract here below):

{   
    {% if content.DisplayLastName__c %}
    "DisplayLastName__c": "{{ content.DisplayLastName__c }}",
    {% endif %}
}

The input message of the map is the following:

{
        "DisplayLastName__c": "é\" r",
        "FirstName": "é\""
}

I got this error due to the fact that there is a \" in one field: "After parsing a value an unexpected character was encountered".

Am I missing something?

Upvotes: 0

Views: 358

Answers (1)

MintyOwl
MintyOwl

Reputation: 81

The following worked for me, however I don't fully know why:

{% assign vDescription = system.Data.Description | Replace: '\"', '\"' %}

Upvotes: 0

Related Questions