Add sanity check for JSON loading.