Which method converts a JSON string into a JavaScript object?

JavaScript Easy
Select the correct answer: Single Choice

Key points

  • JSON.parse() is used to parse JSON strings into JavaScript objects.
  • JSON.stringify() is used to convert JavaScript objects into JSON strings.
  • Object.fromJSON() and JSON.decode() are not valid methods for converting JSON strings to JavaScript objects.

Ready to go further?