json.extract! product, :id, :title, :description, :image, :price, :created_at, :updated_at json.url product_url(product, format: :json) json.image url_for(product.image)