{"issue":{"milestone":null,"title":"PrettyJSON adds incorrect newlines","created_at":"2012-01-01T21:55:05Z","user":{"id":374646,"login":"promontis","url":"https://api.github.com/users/promontis","avatar_url":"https://secure.gravatar.com/avatar/7cb4747dba0651b381cff99903d835a7?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"7cb4747dba0651b381cff99903d835a7"},"updated_at":"2012-01-01T22:01:44Z","labels":[{"name":"bug","color":"e10c02","url":"https://api.github.com/repos/neo4j/community/labels/bug"},{"name":"server","color":"ededed","url":"https://api.github.com/repos/neo4j/community/labels/server"}],"state":"open","id":2698319,"html_url":"https://github.com/neo4j/community/issues/166","closed_at":null,"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"body":"When sending a string containing json, say \"{\\\"test\\\"}\", as a property while using the PrettyJSON class, the output will become:\r\n\r\n[\r\n{\r\n\"method\":\"PUT\",\r\n\"to\":\"/node/1/properties\",\r\n\"body\":{\r\n\"name\":\"{\\\"test\\\"\r\n}\"}}]\r\n\r\nDo note the \\n WITHIN the string value, which the parser does not accept. If I replace PrettyJSON with JSONStringer (so no prettifying), the unit test works. While this is just a unit test, I suspect that the server does the same, as it does not accept my string value. I think this actually is a bug in the pretty json classes as the non-escaped linebreak is nit equivalent and I think even illegal. \r\n\r\nPlease add some labels, as I'm unable to do so.","number":166,"url":"https://api.github.com/repos/neo4j/community/issues/166","comments":1,"assignee":null},"comment":{"created_at":"2012-01-01T22:01:44Z","user":{"id":11977,"login":"peterneubauer","url":"https://api.github.com/users/peterneubauer","avatar_url":"https://secure.gravatar.com/avatar/840ccffd0e89333b608b595ce4782720?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"840ccffd0e89333b608b595ce4782720"},"updated_at":"2012-01-01T22:01:44Z","id":3326191,"body":"Thqnks for reporting! You are on it already?","url":"https://api.github.com/repos/neo4j/community/issues/comments/3326191"},"action":"created"}