-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Generating String similar to JSON without quotes. #715
Comments
I think I need bit more information on what you mean by "similar to JSON without quotes". If you mean 'raw' output ("just include this String verbatim with no modifications in output"), that would be via streaming API's |
This is generating:
I want this (please note that hello is also without quote):
|
Ok. It is possible to force use of unquoted property names with |
In stringSerializer with a WriterBasedJsonGenerator writeString() adds quotation marks " at each end of the string. Since we already know the walue being passed is a string, do we need to add an extra pair of quotation marks ?? |
@Abhishek-P please send usage questions on mailing lists. Adding comments at the end of closed issues is not going to do you much good. Also make sure you understand role of |
How can I configure Jackson to generate text similar to JSON without quotes? I will use this as a String for aesthetic purposes and set inside another
Map<String, String>
. What is the easiest way to create?The text was updated successfully, but these errors were encountered: