How to convert JSON to string in JavaScript

JSON
Last updated Mar 06, 2018
const object = {
  id: 1,
  name: "Leanne Graham"
};

JSON.stringify(object);
"{"id":1,"name":"Leanne Graham"}"