JSON escape & ???

Hi guys
the & character is making my call fail. i don't see what I'm doing wrong as & char shouldn't be escaped or anything.
see below : "name": "Mallorca 365 Spot - Golf & Gourmeurmet",
requestJobDescription={
"type":"update",
"credentials":{
"partnerUserID": "ZZZZZZ",
"partnerUserSecret": "ZZZZZ"
},
"inputSettings":{
"type":"policy",
"policyIDList": ["B1E9839DC6118BB6"],
},
"tags": {
"data": [
{
"name": Project,
"tags": [
{
"name": "Mallorca 365 Spot - Golf & Gourmeurmet",
"enabled": "true",
"glCode": "13"
}
]
}
]
}
}
"responseMessage":"'requestJobDescription' is not valid JSON: Unterminated string at 437 [character 45 line 17]","responseCode":500}
Answers
-
Hi @madslinden, welcome to the Community!
I'd like to help you troubleshoot this error! I can see in your API call that Line 14 is missing quotes around the name of the tag.
"name": Project,
This should be displayed in this format:
"name": "Project",
Can you please make this change and let me know if you still see any issues? Thanks in advance! 😊
-
Tried it all without success.
Yes converting to "And" is what I did to move on but not very nice
Thanks
Mads
-
Thanks Kadie