const user = {
  name: "John Doe",
  age: 30,
  isStudent: false
};

const jsonString = JSON.stringify(user);
console.log(jsonString);
// خروجی: {"name":"John Doe","age":30,"isStudent":false}