const obj = { name: 'Alice', age: 30, courses: ['Math', 'Science'], address: { city: 'New York', zipCode: '10001' } }; const jsonString = JSON.stringify(obj); console.log(jsonString); // Вывод: '{"name":"Alice","age":30,"courses":["Math","Science"],"address":{"city":"New York","zipCode":"10001"}}'