Q. Which of the following methods converts JSON data to a JavaScript object?

  • (A) JSON.parse()
  • (B) JSON.stringify()
  • (C) JSON.toObject()
  • (D) JSON.convert()
πŸ’¬ Discuss
βœ… Correct Answer: (A) JSON.parse()
Explanation: JSON.parse() is used to parse JSON strings and convert them into JavaScript objects.
Explanation by: Chandani
JSON.parse() is used to parse JSON strings and convert them into JavaScript objects.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
97
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Chandani
Publisher
πŸ“ˆ
87%
Success Rate