Added JSON test case

Does require PSQL Server version 9.2. Perhaps we should introduce a check for the server version number ?
A couple of indentation mix ups. Sorry about those.