Re: (Nothing -> C++ Union Decoding)

2021-05-21 Thread svend frolund
Hello John, Thanks for your reply! The example is home-brewed. I tried to construct a "minimal" example that illustrates my problem. As far as I understand the situation, the json object that I refer to as "value" ought to comply with the avro schema in "schema". Another value object were the

Re: (Nothing -> C++ Union Decoding)

2021-05-21 Thread John McClean
>From the spec: > A union is encoded by first writing an int value indicating the zero-based position within the union of the schema of its value. The value is then encoded per the indicated schema within the union. In other words 'value' doesn't have a way for the decoder to figure out which