Skip to content

Latest commit

 

History

History
38 lines (30 loc) · 882 Bytes

README.md

File metadata and controls

38 lines (30 loc) · 882 Bytes

Jackson Parser

Build Status

Jackson parser is a parser o// for Jackson object to normalized json.

Jackson is a compressor json.

Install

  npm install jackson-parser

Using

  var JacksonParser = require('jackson-parser');

  JacksonParser.decode("<Jackson Object>");// return a normalized json.
  JacksonParser.encode("<JSON>");// return a jackson json.

On global

  <script src="./dist/jacksonparser.min.js"></script>
  <script>
    jacksonparser.decode(<Jackson Object>);
  </script>

Configs

  var JacksonParser = require('jackson-parser');

  JacksonParser.decode("<Jackson Object>", {
    key: "@id", //default is id
    clone: true, //default is false
    uuid: true, //default is false
  });