[Bug Report] Double quotes occurring within an element not being escaped in JSON #1267
Replies: 3 comments 5 replies
-
Really!?! Is no one going to respond to an objective, repeatable bug in the API? The API is generating malformed JSON. That's a BIG problem. |
Beta Was this translation helpful? Give feedback.
-
Note that this is happening with JavaScript fetch. A colleague of mine tells me that it does not happen in php curl but that php curl will cause several high ASCII characters to get mangled. |
Beta Was this translation helpful? Give feedback.
-
Etsy developers don't use this issues board to monitor for reports of bugs etc. You'll need to email them directly to ask for help As for what you are reporting. Are you saying that if the personalisation field said "I would really "love" you to add my name to this" then the double quotes around love are not being escaped? My app's main usage of the API is the getShopReciepts endpoint and I have no issues with the JSON that is returned. I am running on .NET. |
Beta Was this translation helpful? Give feedback.
-
In the response for getShopReceipts, any double quotes that may occur within any of the resulting fields are not being escaped in the JSON that is being generated by the API. Particular problem fields are "description" within the "transactions" array and "personalization" within the "variations" array within the "transactions" array. The API will build invalid JSON if double quotes occur within those fields presumably amongst other fields in which double quotes could occur.
Beta Was this translation helpful? Give feedback.
All reactions