Skip to content

JSON output lacks add_whitespace and always_print_primitive_fields #1171

@jiawen

Description

@jiawen

My projects serializes proto3 messages to JSON as a nice human-readable format that also allows for some light editing. However, the current Swift output is very hard to read, as everything is on one line.

The C++ API has add_whitespace and always_print_primitive_fields options that the Swift version lacks.

It seems reasonably easy to add and test.

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/enhancementImprovements to existing feature.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions