-
-
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
SAX dumper #1512
Comments
The whole logic for dumping is in file https://github.com/nlohmann/json/blob/develop/include/nlohmann/detail/output/serializer.hpp which implements class serializer with constructor serializer(output_adapter_t<char> s, const char ichar,
error_handler_t error_handler_ = error_handler_t::strict) and a public method void dump(const BasicJsonType& val, const bool pretty_print,
const bool ensure_ascii,
const unsigned int indent_step,
const unsigned int current_indent = 0) taking that implements the traversal. Some thoughts:
What do you think? |
The second one sounds exactly like the issue description. |
@Al2Klimov Right, but there are still a lot of details to decide. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
@nlohmann Interesting... is that this feature request's end? |
No, it's just no-one commented on this for 10 days, and I had no time to look into it. |
I'm not stressing you... but I'm afraid the bot does. |
The bot is not stressing me. :) |
At least it may let some tickets disappear. For me a closed ticket stands for the subject is either done, rejected or a duplicate. |
This is a feature. The project is run by a few people in their free time. A lot of issues are feature requests that may need a lot of time to realize, test, and document. If these issues were left open after months of inactivity, then this would be more of a pressure. And since they are labeled "stale", it is hopefully clear why they have been closed. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Just a heads up, since I wanted to add my thoughts here too: We really appreciate all the work you're pushing into this project. The replacement of the old YAJL library went smooth and all the dependencies in Icinga 2 work better now, including proper UTF8 support. The first release will be 2.11 soon enough, and we'll sure highlight your work in the release blog post. That being said, this feature request would be nice to have. Since we're all involved in open source projects, time and resources are needed. Given the difficulties with the interface design here, I'm not sure if that works out, especially with later supporting it. I've seen similar problems with Boost Beast and custom parsers lately. Looking at our code base (https://github.com/Icinga/icinga2/blob/master/lib/base/json.cpp), we also have some specialities with custom value types not so common in the C++ world. I'm fine with it, and if we find the time to create a PoC or discuss this in person, we'll see about it. For now, thanks for taking care :) |
Like the SAX parser, but for dumping. A class with methods called by the using app instead of being called.
The text was updated successfully, but these errors were encountered: