-
-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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 ensure_ascii parameter to dump. #330 #654
Conversation
src/json.hpp
Outdated
|
||
@param[in] indent If indent is nonnegative, then array elements and object | ||
members will be pretty-printed with that indent level. An indent level of | ||
`0` will only insert newlines. `-1` (the default) selects the most compact | ||
representation. | ||
@param[in] indent_char The character to use for indentation if @a indent is | ||
greater than `0`. The default is ` ` (space). | ||
@param[in] ensure_ascii If ensure_ascii is true (the default), all non-ASCII |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The default in the function declaration is false.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice PR. Please have a look at the required changes.
src/json.hpp
Outdated
|
||
@return string containing the serialization of the JSON value | ||
|
||
@complexity Linear. | ||
|
||
@liveexample{The following example shows the effect of different @a indent | ||
parameters to the result of the serialization.,dump} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The ,
here is required. It separates the description (The following example...
) from the name of the example dump
(see file doc/examples/dump.cpp
).
Please undo this change.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Thanks for the PR! Let's wait for Travis/Coveralls to finish. |
Thanks a lot! |
Happy to help! The library is wonderful and it made my project a joy to
program. Thank you!
…On Wed, Jul 12, 2017, 01:59 Niels Lohmann ***@***.***> wrote:
Thanks a lot!
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#654 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AC_FFxn5MPYkU3bozw77T19s0y-nr3DAks5sNGCqgaJpZM4OUl1g>
.
|
@ryanjmulder Unfortunately, I found an error in the code, see #656. Maybe you have an idea how to fix it. |
No description provided.