https://github.com/cloudydeno/ejson
Port of Meteor's EJSON library. "Extended and Extensible JSON library."
https://github.com/cloudydeno/ejson
Last synced: over 1 year ago
JSON representation
Port of Meteor's EJSON library. "Extended and Extensible JSON library."
- Host: GitHub
- URL: https://github.com/cloudydeno/ejson
- Owner: cloudydeno
- Created: 2025-04-17T22:07:21.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-04-17T22:30:29.000Z (over 1 year ago)
- Last Synced: 2025-04-24T03:45:51.525Z (over 1 year ago)
- Language: JavaScript
- Size: 85 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ejson
A republish of Meteor's `ejson` package.
Original README follows.
---
[Source code of released version](https://github.com/meteor/meteor/tree/master/packages/ejson) | [Source code of development version](https://github.com/meteor/meteor/tree/devel/packages/ejson)
***
EJSON is an extension of JSON to support more types. It supports all JSON-safe
types, as well as:
- **Date** - JavaScript `Date`
- **Binary** - JavaScript `Uint8Array` or the
result of [`EJSON.newBinary`](http://docs.meteor.com/#ejson_new_binary)
- **User-defined types** - see [`EJSON.addType`](http://docs.meteor.com/#ejson_add_type)
All EJSON serializations are also valid JSON. For example an object with a date
and a binary buffer would be serialized in EJSON as:
{
"d": {"$date": 1358205756553},
"b": {"$binary": "c3VyZS4="}
}
For more details, see the [EJSON section](http://docs.meteor.com/#ejson) of the Meteor docs.