Escape Quotes in line_item title shopify breaking API feed
I’m writing middleware for client fulfillment and noticed that some of the JSON from the order callback/paid hook isn't validating correctly because double quotes are included in the body.
This is breaking client-side JSON deserialization because the double quotes in the body of the webhook HTTP POST aren't being escaped.
Is there anything I can do about this besides forcing the client to remove the double quotes from the title?
Didn't find the answer?
Our community is visited by hundreds of Shopify development professionals every day. Ask your question and get a quick answer for free.
Find the answer in similar questions on our website.
Write quick answer
Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.