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

Implement JsonGenerator.writeFieldId(...) for YAMLGenerator #140

Closed
cowtowncoder opened this issue Jul 24, 2019 · 0 comments
Closed

Implement JsonGenerator.writeFieldId(...) for YAMLGenerator #140

cowtowncoder opened this issue Jul 24, 2019 · 0 comments
Labels
yaml Issue related to YAML format backend

Comments

@cowtowncoder
Copy link
Member

With latest improvements, attempt is made to try to retain "String-type" of text values written; and so values like 100 are written quoted even if MINIMIZE_QUOTES is enabled.

But there is now (2.8+) a special case -- JsonGenerator.writeFieldId(long)-- where caller can indicate that the value in question should be considered a real integral number. While it is/was added originally to support (binary) formats that can haveMaps with non-String key types, it seems like it should also be supported by YAMLGenerator` since, well, why not.

The main/only difference should be that no quoting should be added.

@cowtowncoder cowtowncoder added 2.10 yaml Issue related to YAML format backend labels Jul 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
yaml Issue related to YAML format backend
Projects
None yet
Development

No branches or pull requests

1 participant