wrap json.loads in try..except