json.extract! @expense, :id, :created_at, :updated_at