RR: added integration test to verify that the database-based JSON code gets the same result as Alan's JSON dump.