Question 176

JSON.parse() in JavaScript is used to:

  1. ASend data to a server
  2. BConvert a JSON string into an object
  3. CConvert an object into a JSON string
  4. DValidate HTML
Show answerHide answer

Correct answer: (B) Convert a JSON string into an object

Explanation

JSON.stringify() does the reverse.

From DSSSB TGT Computer Science Full Mock Test 5

This is question 176 of DSSSB TGT Computer Science Full Mock Test 5. See all questions of this paper with answers, or attempt the paper as a timed online test to get your score and all-India rank.