What is the value of json in the following code? var obj = { fruit: 'apple', toJSON: function () { return 'orange'; } }; var json = JSON.stringify({x: obj});( )
{"x":"apple"}
{"fruit":"orange"}
{"x":"orange"}
{"fruit":"apple"}
What is the value of json in the following code? var obj = { fruit: 'apple', toJSON: function () { return 'orange'; } }; var json = JSON.stringify({x: obj});( )
{"x":"apple"}
{"fruit":"orange"}
{"x":"orange"}
{"fruit":"apple"}