JSON Backslash Escape Issue

Fixed a JSON issue with backslash escaped characters where writing the JSON caused the escaping backslashes to be escaped, creating invalid JSON.