Convert object literal to valid JSON

If our string is not valid JSON try to convert into an object, stringify, then parse.

Closes #2