How to convert JSON to string in JavaScript

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

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