Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 |
Tags
- tomcat
- vscode
- IntelliJ
- VirtualBox
- ssh
- Mac
- 단축키
- context
- Eclipse
- profile
- port
- plugin
- find
- GIT
- Quartz
- maVen
- JavaScript
- bash
- netsh
- 줄바꿈 문자
- Windows 10
- grep
- resource
- lsof
- Source
- import
- 네트워크
- web.xml
- xargs
- Windows
Archives
- Today
- Total
develog
[javascript] JSON 본문
// user Object
let userObj = {"name": "userA", "age": 20};
console.log(userObj);
// { name: 'userA', age: 20 }
// JSON.stringify | object 를 json string 으로 변환
let userJsonString = JSON.stringify(userObj);
console.log(userJsonString);
// {"name":"userA","age":20}
// JSON.parse | json string 을 object 로 변환
let userObj2 = JSON.parse(userJsonString);
console.log(userObj2);
// { name: 'userA', age: 20 }
Comments