Skip to content

Need to lowerCamelCase JSONPB key names #206

@j6carey

Description

@j6carey

According to the protobuf v3 specification:

Message field names are mapped to lowerCamelCase and become JSON object keys. If the json_name field option is specified, the specified value will be used as the key instead. Parsers accept both the lowerCamelCase name (or the one specified by the json_name option) and the original proto field name.

Current compile-proto-file keeps the original field name.

Note that testCase13 in tests/SimpleDecodeDotProto.hs would be able to decode from the JSONPB format emitted by Python if we were to add support for parsing lowerCamelCase conversions of field names.

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