I\'m trying to build a JSON file to access a product\'s variation via a variation code. Ideally, I could call variations.abcdefgh essentially asking to define a structure li
json.set! :variations do @variations.each do |variation| json.set! variation.product_code do json.(variation, :available, :price) end end end
^^ this should do it