Escaping quotes in JSON

Did you read:

And the rest of the same reply.

JSON-safe is safer for all JSON enconding. This is the function to use, not find and replace.