to_json now returns just the json.