Code for the RJson package for GHC (http://hackage.haskell.org/cgi-bin/hackage-scripts/package/RJson)