Adding back JSON support.  I get an implicit declaration warning on fmemopen in json_support.c, but it's unclear where there is coming from.  Should investigate.