handled inconsistent jsons