Finished JSONification, including associated unit tests.