check if the json is already parsed before attempting to parse it