Fix: test for JSON in sanity_check.