fix commits endpoint
to_json