Created
December 23, 2014 18:51
-
-
Save easylogic/2ec20b7dd5b72dcfc72c to your computer and use it in GitHub Desktop.
자바에서 json 형태로 코딩하기
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
String json = "{ | |
width : 800, | |
height : 800, | |
padding : 'empty', | |
grid : { | |
x : { type : 'block', target : 'name' } | |
} | |
} "; | |
ChartBuilder c = new ChartBuilder(json); | |
System.out.println(c.render()); |
JSONObject
JSONArray 를 랩핑하지 말고 쓰는게 맞는 것인가?
괜히 랩핑했나?
매번 캐스팅 비용이 들어가는데 흠 ㅡㅡ;
javascript 버전도 coffeescript 로 계속 만들어야하나?
흠 ㅡㅡ; 이걸 언제 다 구현하나 ㅡㅡ;
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
자바 코드 자체로 json 을 만들지 말고 통으로 문자열로 json 을 만드는 것이 맞는것인가?