-
Notifications
You must be signed in to change notification settings - Fork 32
transit-js supports any ECMAScript-262 Edition 3 or later implementation provided it supplies a JSON module with parse and stringify methods. This covers most web browsers released in the last 14 years. transit-js also works just fine in environments like Rhino and Nashorn on the JDK. If you encounter issues a ESCMAScript-262 Edition 3 compliant implementation please open an issue.
Many popular programming languages can represent richer forms of data than JSON can encode. This forces client and server applications to develop ad-hoc practices in order to coordinate on even basic common scalar values like 64bit integers and dates. 64bit integers are common as ids and transit can naturally treat them as map keys. The story is quite similar for dates. Combined with specification level support for composite maps, returning ES6 maps means that users can reliable index values in the most natural way for the domain at hand.