Added to_json.