What is the purpose of the method JSON.parse()?
A
Parses a string to integer
B
Parses a string to JSON
C
Parses a string from JSON to JSON2
D
Parses integer to string
Correct Answer: Parses a string to JSON
The JSON.parse() method parses a string as JSON, optionally transforming the value produced by parsing. The function parseInt() method parses a string and returns an integer.