You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey,
is it possible to deserialize an avro message to a JSON / text format which also preserves the order of the fields as defined in the avro schema? Currently I unmarshal the avro message to an interface{} and then I apply json.Unmarshal() on it which works fine, but the fields are ordered alphabetically rather than in the order as defined in the schema.
The text was updated successfully, but these errors were encountered:
@nrwiersma Thanks for the speedy response. Would you accept PRs for such a method that or is this something you don't want to have as part of this library. Unfortunately I don't see a workaround, because the field order information is lost after the unmarshal process I believe.
Hey,
is it possible to deserialize an avro message to a JSON / text format which also preserves the order of the fields as defined in the avro schema? Currently I unmarshal the avro message to an
interface{}
and then I applyjson.Unmarshal()
on it which works fine, but the fields are ordered alphabetically rather than in the order as defined in the schema.The text was updated successfully, but these errors were encountered: