I think you can drop all the format stuff and just `respond_with` the object