`'` inside the key or value should be fine, since JSON strings are `"` wrapped. If `"` inside a keyname or value is `&quot;` then that's fine, as long as we don't also turn single quotes into HTML entities.