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 | 31 |
Tags
- Eclipse
- maVen
- grep
- ssh
- vscode
- lsof
- 네트워크
- Quartz
- 단축키
- netsh
- xargs
- web.xml
- bash
- JavaScript
- import
- plugin
- port
- Windows 10
- Source
- profile
- context
- Windows
- GIT
- find
- Mac
- IntelliJ
- resource
- tomcat
- 줄바꿈 문자
- VirtualBox
Archives
- Today
- Total
develog
[json] JSONObject 본문
String str1 = "{\"list\":[{\"col1\":\"11\",\"col2\":\"12\"},{\"col1\":\"21\",\"col2\":\"22\"}]}"; String str2 = "[{\"col1\":\"11\",\"col2\":\"12\"},{\"col1\":\"21\",\"col2\":\"22\"}]"; Map map = JSONObject.fromObject(str1); System.out.println(); System.out.println("map : " + map); System.out.println("map.get(list) : " + map.get("list")); List list = JSONArray.fromObject(str2); System.out.println(); System.out.println("list : " + list); System.out.println("list.size() : " + list.size()); |