Q. Which method converts an object to a JSON string?
β
Correct Answer: (A)
JSON.stringify()
Explanation: JSON.stringify() converts JavaScript objects to JSON strings.