Switch from RJSONIO -> jsonlite
map2json: revise for use with jsonlite
More changes for RJSONIO -> jsonlite switch