JSON Escape/Unescape

Escape special characters in JSON strings or unescape escaped JSON. Handle quotes, backslashes, and control characters.