{"status":"1","info":"OK","infocode":"10000","results":[{"origin_id":"1","dest_id":"1","distance":"1064","duration":"240"}]}
Json.fromJson
已经试过了,但是转化后,好像没方法去获取到值?
{status=1, info=OK, infocode=10000, results=[{origin_id=1, dest_id=1, distance=1064, duration=240}]}
NutMap map = Json.fromJson('NutMap.class, str); int status = map.getInt("status");
好的,谢谢您