json.array!(@products) do |product|
json.extract! product, :name, :qnt, :val, :active
json.url product_url(product, format: :json)
end