Convert Object to JSON string

Subject:

sometimes the JSON return from json_encode in PHP will return JSON as an object

meaning console.log(data.success == false) will not work.

I've used console.log($.parseJSON(data).success); to get the string result I need to do an evaluation

2017-01-19 09:57:15gstlouis