json.array!(@products) do |product| json.extract! product, :id, :sku, :name, :description, :price_base, :price_sale, :img_product, :presentation, :inventory, :status json.url product_url(product, format: :json) end