test_jsons function

Test JSON files for being in the correct format.