Fixed bug where double quotes were not escaped in JSON output.