/minic

Minimal JSONIC

Primary LanguageJavaScriptMIT LicenseMIT

minic

Minimal JSONIC, except:

  • Colons are removed from single character attributes
  • Leading and trailing {} are removed

Installation

This module is installed via npm:

npm i minic --save

Examples

var minic = require('minic')
var data  = {a:'day', i: 'live', as:'myself'};
var small = minic.stringify(data) // aday,ilive,as:myself
data = minic.parse(small); // {"a":"day","i":"live","as":"myself"}

Rights

Copyright (C) 2015 by yieme, License: MIT