Skip to content
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

Add argument to FlatBufferToString for quotes around field names #8090

Merged
merged 2 commits into from
Nov 18, 2023

Conversation

alresing
Copy link
Contributor

@alresing alresing commented Sep 9, 2023

Function FlatBufferToString has no argument to set quotes around field names. But many JSON parsers require quotes around field names. Also ToStringVisitor class have an argument to put quotes around field name, but it is not used.

I added argument quotes to function FlatBufferToString with default value false, which was used before changes. I added this argument as the last argument, so it supports backwards compatibility.

@github-actions github-actions bot added the c++ label Sep 9, 2023
@dbaileychess dbaileychess enabled auto-merge (squash) November 18, 2023 21:28
@dbaileychess dbaileychess merged commit 11789e4 into google:master Nov 18, 2023
48 checks passed
candysonya pushed a commit to candysonya/flatbuffers that referenced this pull request Jan 8, 2024
…ault false (google#8090)

Co-authored-by: Derek Bailey <derekbailey@google.com>
jochenparm pushed a commit to jochenparm/flatbuffers that referenced this pull request Oct 29, 2024
…ault false (google#8090)

Co-authored-by: Derek Bailey <derekbailey@google.com>
jochenparm pushed a commit to jochenparm/flatbuffers that referenced this pull request Oct 29, 2024
…ault false (google#8090)

Co-authored-by: Derek Bailey <derekbailey@google.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants