Skip to content

Add an option to print 64-bit integers without quotes #762

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

svanharmelen
Copy link

I appreciate the fact that this is done because it is described as such in the ProtoJSON specification, but it prevents using the generated JSON in (most) other systems as it's not following RFC8259 which does not specify nor require 64-bit integers to be quoted.

By adding this option people still get the ProtoJSON output by default, but have the option to opt-out from the quoted 64-bit integers in order for the output to be more inline with RFC8259.

Hope this is something you are willing to merge as it will allow us to use the protobuf-json-mapping crate for our use cases. Thanks!

@svanharmelen svanharmelen force-pushed the feat/unquoted-64bit-integers branch from f37d258 to 30cb0f7 Compare April 23, 2025 09:16
@svanharmelen svanharmelen force-pushed the feat/unquoted-64bit-integers branch from 30cb0f7 to 431af2c Compare April 23, 2025 09:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant