Details
-
Improvement
-
Status: Open
-
Major
-
Resolution: Unresolved
-
1.8.0
-
None
-
None
Description
Currently serializing a nullable field of type union like:
"type" : ["null","some type"]
when serialized as JSON results in:
"field":
{"some type":"value"}when it could be:
"field":"value"
Also fields that equal the the default value can be omitted from the serialized data. This is possible because the reader will have the writer's schema and can infer the field values. This reduces the size of the json messages.
Attachments
Attachments
Issue Links
- is duplicated by
-
AVRO-2899 JsonEncoder writes type information for not-null union
- Resolved
- is related to
-
AVRO-3620 name vs. fullname in JSON encoding of union
- Open
- relates to
-
AVRO-1950 Better Json serialization for Avro decimal logical types?
- Open
-
AVRO-3210 how the Avro Schema with Union type can accept the ‘normal JSON’
- Resolved
- requires
-
AVRO-1711 JsonDecoder.skipChildren skips more than it should.
- Resolved