Working towards tests of json output

 - In preparation for switching from RJSONIO to jsonlite