Will you next time you use android2.2 development is how to deal json, comes with egg package does not remove too much pain .
------ Solution ---------------------------------------- ----
not how used, but rarely now 2.2 mobile phones in use ..
------ Solution -------------- ------------------------------
try FastJson
------ Solution --- -----------------------------------------
school learning , attention in the ~ ~
------ Solution --------------------------------------- -----
with Google jar package, parsing JSON class import com.google.gson.Gson;
import com.google.gson.reflect.TypeToken;
Type listType = new TypeToken
Gson gson = new Gson ();
LinkedList
------ reference -------------- -------------------------
company's project is 2.2 , no way
------ reference --- ------------------------------------
Thank you for your answer , FastJson not tried , Available to study under , Gson not what I want function , and finally themselves , the method is to set down org.json source , another package name does not conflict
没有评论:
发表评论