It seems that SQLFiddle is adding some kind of wrapping around the JSON string in the result. It escapes the string from the result, maps the escaped result to a "Value" key in a JSON object, and adds a "Type": "json" key/value.
Affects PostgreSQL 9.2 and up (since the JSON features were introduced).
See this fiddle: http://sqlfiddle.com/#!15/5860d/11 It gives this result:
When I run the same set of commands directly against PostgreSQL, I get the following result:
It seems that SQLFiddle is adding some kind of wrapping around the JSON string in the result. It escapes the string from the result, maps the escaped result to a
"Value"
key in a JSON object, and adds a"Type": "json"
key/value.Affects PostgreSQL 9.2 and up (since the JSON features were introduced).