create a json file in javascript with same object properties code example Example: js create json from object JSON.stringify(the_data);