Find the size (bytes) of a serialized object
Install
$ npm install --save json-size
Usage
var jsonSize = //=> 13
API
jsonSize(value)
-> number
Returns the number of bytes of the resulting JSON.
value
Required
Type: any
A value to stringify.
License
MIT © Ben Drucker