juttle-jsdp
The implementation of the Juttle Streaming Data Protocol (JSDP) used by the components of Project Juttle to send data and metadata between the server (juttle-service) and client (juttle-client-library) components.
Getting started
Node.js
Note: momentjs is a peerDependency.
$ npm install juttle-jsdp
let JSDP = ;console;
Browser
Note: momentjs is expected as an external dependency so be sure its available globally.
API
JSDP.serialize(value)
Serializes the given object to JSON.
JSDP.deserialize(data)
Deserializes the given JSON and returns an object that has "value equality" with original serialization target.