-
-
Notifications
You must be signed in to change notification settings - Fork 6.7k
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
Experimental support for BSON (de)serialization #1254
Closed
Closed
Changes from 1 commit
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
f06c8fd
BSON: serialization of non-objects is not supported
julian-becker 5f5836c
BSON: Support empty objects
julian-becker 9a0dddc
BSON: Object with single boolean
julian-becker 0c0f2e4
BSON: support doubles
julian-becker 6c447de
BSON: Support objects with string members
julian-becker c5ef023
BSON: support objects with null members
julian-becker 7ee361f
BSON: support objects with int32 members
julian-becker c0d8921
BSON: support objects with int64 members
julian-becker 83b427a
BSON: unsigned integers
julian-becker 5ce7d6b
BSON: support objects with objects as members
julian-becker 120d1d7
BSON: test case for a more complex document
julian-becker cf485c2
BSON: Support for arrays
julian-becker df33a90
BSON: Bugfix for non-empty arrays
julian-becker 763705c
Fix: Add missing `begin()` and `end()` member functions to `alt_string`
julian-becker bce4816
BSON: Added test case for the different input/output_adapters
julian-becker ef358ae
BSON: Fixed hangup in case of incomplete bson input and improved test…
julian-becker 0a09db9
BSON: Extend `binary_reader::get_number` to be able to hanlde little …
julian-becker e8730e5
BSON: Reworked `binary_reader::get_bson_cstr()`
julian-becker 81f4b34
BSON: Improved documentation and error handling/reporting
julian-becker 062aeaf
BSON: Reworked the `binary_writer` such that it precomputes the size …
julian-becker df0f612
BSON: allow and discard values and object entries of type `value_t::d…
julian-becker 5bccacd
BSON: throw json.exception.out_of_range.407 in case a value of type `…
julian-becker daa3ca8
BSON: Adjusted documentation of `binary_writer::to_bson()`
julian-becker 978c3c4
BSON: throw `json.exception.out_of_range.409` in case a key to be ser…
julian-becker 2a63869
Merge branch 'develop' of https://github.com/nlohmann/json into featu…
julian-becker 8de10c5
BSON: Hopefully fixing ambiguity (on some compilers) to call to strin…
julian-becker 5ba812d
BSON: fixed incorrect casting in unit-bson.cpp
julian-becker ad11b6c
BSON: Improved exception-related tests and report location of U+0000 …
julian-becker 24a4142
BSON: Fixed array serialization by adding increasing integral names t…
julian-becker File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
I don't think "type 0" etc. is a helpful description for users of the library. Please use
type_name()
to explicitly name the type (null, boolean, etc.).Furthermore, "to requested format" should be replaced by "BSON" to be explicit.