Double-encode JSON as an escaped string
Turns JSON into a double-encoded string — useful for embedding JSON in code, .env files, or API payloads that expect a string value.