Revert to RJSONIO, fixes #73.
Also minor formatting improvements and updated test.  Should be passing unit tests now