0.0.12 • Published 7 years ago
pojo-deserializer v0.0.12
pojo-deserialize
Node.JS library for deserializing POJO/JSON parsed objects to Javascript code.
Dependencies
- object.value 1.0.3
Installation
npm install pojo-deserialize
var pojoJs = new pojoDeserializer();
var pojo = JSON.parse('{"Hello":"My String Var", "Contents":[1,2,3]}');
var deserializedJsCode = pojoJs.deserializePojo(pojo);
console.log(deserializedJsCode);
/*
prints --- { Hello: 'My String Var', Contents: [ 1, 2, 3]}
*/
Test
npm test
Documentation
API documentation can be found at https://github.com/whindes/PojoScriptifyFromJSON/Readme.md
Implementation Notes
- Supports browser or Node.js implementations