-
-
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 to_string overload for indentation #13
Comments
Yeah, I think this is needed when saving a json object to file, it is a great mess if there is no indentation and line breaks. |
nlohmann
added a commit
that referenced
this issue
Jan 6, 2015
- to_string() method is now called dump() - syntax borrowed from Python’s json.dumps()
I implemented a pretty-printing serialization. For that, I renamed the function This function takes an integer as parameter:
|
Closed
Closed
Closed
GerHobbelt
pushed a commit
to GerHobbelt/nlohmann-json
that referenced
this issue
May 7, 2021
Sync Fork from Upstream Repo
2 tasks
2 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Create an overload of the
to_string
member function that handles indentation (spaces) and line breaks.The text was updated successfully, but these errors were encountered: