Parse Double Quotes in JSON with Apple Shortcuts

154 Views Asked by At

I want to to parse JSON file with Apple Shortcuts. I tried suggestions from How to escape double quotes in JSON. So triple \:

{
    "question" : "I would say \\\"what's the hell happened with quotes?!\\\""
}

returns:

picture of the result

And double \:

{
    "question" : "I would say \\"what's the hell happened with quotes?!\\""
}

returns:

picture of the result

Any ideas?

1

There are 1 best solutions below

1
Veronika_2309 On

To parse double quotes in JSON using Apple Shortcuts, you can escape them with a single forward slash as shown below:

{
    "question" : "I would say \"what's the hell happened with quotes?!\""
}

source: [link]