json.cache! [:v1, :unit, unit.id] do json.extract!( unit, :uuid, :name, :code, :num, :int_code, :base, :factor, :measure ) end