tags. We'll preserve them.
Now we output JSON. We must ensure valid JSON, so escape quotes if needed. But we are writing in a response, so we'll output the JSON object.
Let's construct the JSON.
We'll use double quotes for strings, and escape any internal double quotes. But