java json + javac打包
Org.json
http://www.json.org/java/
https://github.com/douglascrockford/JSON-java
http://www.ewdna.com/2009/01/json-in-java.html
String to JSON
JSONObject jObject = new JSONObject(String);
String s = jObject.getJSONArray("string_idx");
JSONArray arr = jObject.getJSONArray("array_idx");
JSONObject obj = jObject.getJSONObject("object_idx");
for(int i=0;i<arr.length;i++){}
google Gson
https://code.google.com/p/google-gson/
http://www.json.org/java/
https://github.com/douglascrockford/JSON-java
- window 下 cmd, 先用 javac 檢查是否有設定 環境參數。
如果沒有就去將 jdk path 加入 JAVA_HOME(/jdk) & PATH(/jdk/bin) - 用 javac 先 compile
- jar -cvf 打包
http://www.ewdna.com/2009/01/json-in-java.html
String to JSON
JSONObject jObject = new JSONObject(String);
String s = jObject.getJSONArray("string_idx");
JSONArray arr = jObject.getJSONArray("array_idx");
JSONObject obj = jObject.getJSONObject("object_idx");
for(int i=0;i<arr.length;i++){}
google Gson
https://code.google.com/p/google-gson/
java json + javac打包
Reviewed by Wild
on
3/08/2014 04:05:00 下午
Rating:
沒有留言:
沒有Google帳號也可發表意見唷!