Skip to content

Add JsonFormat.Shape.BINARY #159

@cowtowncoder

Description

@cowtowncoder

Looks like "binary" representation is not available, yet. Although one can use NATURAL in many cases (like, say, byte[]), there are cases where one might want to use binary representation even if it was not the default. For example, when serializing java.util.UUID as JSON, natural representation is Shape.STRING, but one could conceivably want to use "binary", which in case of JSON would mean Base64 encoding.
But more importantly, it may be important to distinguish shape representations for formats that do have native binary values: it is likely that Avro and Protobuf formats would need such a Shape descriptor for customizations.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions