json-micro

Smaller JSON objects by sacrificing float accuracy

npm install json-micro
8 downloads in the last month

json-micro

Sometimes you want to transmit info around in JSON and don't care so much about float precision.


stringify = require('json-micro').stringify
data = [
  [1,2,3]
  ["cat","dog",Math.PI]
]
console.log stringify data

Output:

Installation

> npm install -g json-micro
npm loves you