how to convert an object to json string in js code example Example: js create json from object JSON.stringify(the_data);