Q. Which method is used to convert an object to JSON string?
β
Correct Answer: (B)
JSON.stringify()
Explanation: JSON.stringify() converts an object into a JSON string.