Json.stringify()
기본문법 JSON.stringify(value[, replacer[, space]]) JavaScript값이나 객체를 JSON문자열로 변환, 선택적으로 relplacer를 함수로 전달할 경우 전 값을 변형, 배열로 전달시 지정한 속성만 결과에 포함 console.log(JSON.stringify({ x: 5, y: 6 })); // Expected output: "{"x":5,"y":6}" relplacer 함수사용시 function replacer(key, value) { if (typeof value === "string") { return undefined; } return value; } var foo = {foundation: "Mozilla", model: "box", week: 45, tra..