I don't like putting in another format.json outside of a respond_to do block, so maybe someone can help me rework this a little.