adding extra call to json.loads, json is not always being decoded properly