2.2.3 • Published 2 years ago

ejson v2.2.3

Weekly downloads
11,385
License
MIT
Repository
github
Last release
2 years ago

ejson

Version npmBuild StatusCoverage StatusIRC channel

ejson is an extension of JSON to support more types. It supports all JSON-safe types as well as

  • Date: It maintains a date instance instead of transforming it to a string.
  • Binary: Uint8Array
  • User defined types

The ejson module is port of Meteor's EJSON parser which has been made compatible for Node.js and browsers. This way, other real-time libraries can also make use of these extensions.

Installation

The module is released through npm:

npm install --save ejson

Usage

The API is exactly the same as the API that Meteor provides as it uses exactly the same code. The most important API's are:

  • EJSON.clone
  • EJSON.parse
  • EJSON.stringify

And some utility methods:

  • EJSON.toJSONValue
  • EJSON.fromJSONValue
  • EJSON.isBinary
  • EJSON.newBinary
  • EJSON.equals

See the meteor EJSON documentation for more detailed information.

License

This module is licensed under MIT. Same as Meteor.js is.

react-native-meteor-forkpubsub-ddp-clientkaddio-money@everything-registry/sub-chunk-1561gongo-clientgrubba-meteorrnihealth-react-native-meteorid-mapvazco-services-sdklolslean-ddpfowler-chat-reactnativeelectron-meteorelectron-connect-meteorevista-ddp-clientevista-ddp-server-reactivefastmodefs-ddp-server-eventopen-telecomopen-ddp-clientkemao-larknode-red-contrib-rocketchatnode-red-contrib-konectynode-simple-schemanode-ddp-clientnesquirkmongodb-backuppermongo-collections-dumpermic-ddpmeteor-sdkmeteor-streamed-joinsmeteorjs-clientmeteor-react-nativemeteor-checkmeteor-param-checkmeteor-react-jsmicro-panda-serializer-ejsonmojoinmojoin-coremoleculer-ejson-serializermoim-meteor-corepublication-serverqps-clientprimus-socket-serverpubsub-client-ddpreact-ddpreact-chromaticreact-meteor-clientselenium-syncrxjs-ddp-clientrealtimatereactive-dictreact-web-meteorredis-pubsub-relayreact-native-meteorreact-native-meteor-cariichatreact-native-meteor-customreact-native-meteor-datareact-native-meteor-debug-subsreact-native-meteor-upgradedrocket.chat.protorn-meteorrn-meteor-streamertv-automation-server-core-integrationtyrexstandalone-mongo-id@powership/utils@navelpluisje/ddp-client@pomelyu/react-meteor-client@ekliptor/apputils@ekliptor/browserutils@radio/react-native-meteor@nqminds/ddp.js@nrser/ughuse-autorun@meteorrn/core@mongoosejs/studio@infinitebrahmanuniverse/nolb-ejsimple-exchangesimpleddpsimpleddp-coresimpleddp-nodesnyk-broker@nyby/meteor-react-js@nyby/meteor-react-nativewecare-react-native-meteorwanchain-dapp-connect@hugocourthias/react-native-meteor@kemao/lark@kemao/package-tools@ajaybhatia/react-native-meteor@swind/utils@sunnyg/ddp-client@vcsc/react-data-layer@vlasky/mysql-live-select@backland/utils@albertzak/react-native-meteor@zalastax/nolb-ej@blastjs/ddp-common@blastjs/diff-sequence
2.2.3

2 years ago

2.2.2

3 years ago

2.2.1

3 years ago

2.2.0

5 years ago

2.1.2

9 years ago

2.1.1

9 years ago

2.1.0

9 years ago

2.0.1

9 years ago

2.0.0

9 years ago

1.0.1

10 years ago

1.0.0

10 years ago

0.0.1

12 years ago