objectToJSON
Convert an object into a JSON object
Why?
JSON.parse() didn't work for a Bluebird promise object.
Install
$ npm install --save object-to-json
Usage
var objectToJson = ; var person = name: "Joe" age: 22 var jsonPerson = ;
API
objectToJson(object)
Name | Type | Description |
---|---|---|
object | Object |
object to be converted to a JSON object |
var objectToJson = ; var person = name: "Joe" age: 22 var jsonPerson = ;
License
MIT © Joe Gesualdo