Fixed to_json.