is to_json necessary?