add checks for all json in API