Refactored json.