Find the size (bytes) of a serialized object
$ npm install --save json-size
var jsonSize = require('json-size')
jsonSize({foo: 'bar'})
//=> 13
Returns the number of bytes of the resulting JSON.
Required
Type: any
A value to stringify.
MIT © Ben Drucker