Project commit
This commit is contained in:
18
README.md
18
README.md
@ -1,3 +1,17 @@
|
||||
# godot-bson
|
||||
# BSON for the Godot Engine
|
||||
This is a simple BSON serializer and deserializer written in GDScript that is originally designed to be compatible with [JSON for Modern C++](https://json.nlohmann.me/)'s BSON components, but it can be used with any other BSON tool.
|
||||
|
||||
A BSON serializer/deserializer for the Godot Engine
|
||||
From [bsonspec.org](https://bsonspec.org/):
|
||||
BSON, short for Binary [JSON](http://json.org), is a binary-encoded serialization of JSON-like documents. Like JSON, BSON supports the embedding of documents and arrays within other documents and arrays.
|
||||
|
||||
This plugin is useful for server/client communication, interacting with MongoDB, reducing JSON file sizes, etc.
|
||||
|
||||
After enabling this plugin in your Godot project settings, you can access the BSON object with:
|
||||
```
|
||||
BSON.to_bson(Dictionary)
|
||||
```
|
||||
and
|
||||
```
|
||||
BSON.from_bson(PackedByteArray)
|
||||
```
|
||||
You can also test out this plugin with `/BSON Examples/dunk.tscn`. This example will take your JSON, serialize it to BSON, then deserialize it back to JSON.
|
||||
|
Reference in New Issue
Block a user