Open bernkastel02 opened 3 years ago
Seems like a good idea to add large scale support for object storing. Personally I think BJSON would be the better option here as it should in theory be closer to the format of all the other implemented types/blocks.
UBJSON would work too, if it's actually any close to finished.
oh
guess that's a no then; guess we should consider removing it as an option for an alternative
it's probably fine to move this to stage 1 considering all aspects of it are defined and it's been nearly a week since it's creation
RFC0001 - JSON Datatype (through BSON)
RFC Stage: Stage 1
Introduction and Summary
BSON exists as a sustainable datatype for storing JSON as binary, serializing it into a format we can store at pure ease. JSON has proven to be an important storage necessity for things like settings, configuration and more.
Adding support for JSON through this format will allow users to store JSON objects and values sustainably, without having to use an external format for such.
Explanation
BSON examples are well provided as is, and can be used by individual database implementations to create their own parser (unless they use a module in their individual languages)
For example, this is a BSON data structure.
This can be deserialized into the provided JSON structure:
With this nice, simple look; It would fit right in with how data is formatted.
Pseudo-code
Rationale and Alternatives
Why is this design the best in the space of possible designs?
What other designs have been considered and what is the rationale for not choosing them?
What is the impact of not doing this?
Metadata
Current Implementations
This section is reserved for whenever a database implementation adds it.
Timeline
3/2/2020 - Created RFC