Q23
What is the purpose of the method JSON.parse()?
A.
Parses a string to integer
B.
Parses a string to JSON
AnswerC.
Parses a string from JSON to JSON2
D.
None of the mentioned
Answer: Option B
Solution
Answer: Option B
Solution:
The JSON.parse() method parses a string as JSON, optionally transforming the value produced by parsing.