
let user = { id: 1, username: "ssar", password: "1234", hobby: ["축구", "농구"] }; // js object -> json string let requestBody = JSON.stringify(user); console.log(requestBody); // json string -> js object let responseBody = JSON.parse(requestBody); console.log(responseBody);
Share article