json tostring object object code example Example: json returning object object JSON.stringify(theObject)