EJSON is a great way to use JSON to pass binaries and serialize/deserialize any type of data with ease. We use it to easily serialise/deserialise our objects while maintaining important objects such as dates, object ids, regexp etc.
Works with complex objects such as
Works with customly defined objects for easy serialisastion and deserialisation:
Follow the official and complete documentation here, our implementation is a superset of it: https://docs.meteor.com/api/ejson.html
An easy way to transform an object into a class instance.