<ResponseSet> <params> <entry> <String>Count</String> <String>1</String> </entry> </params> <result>success</result> <datalist> <data> <entry> <string>VM_Id</string> <string>VM264b80d21dc682d4254f8e</string> </entry> <entry> <string>Execute_Time</string> <string/> </entry> </data> </datalist> </ResponseSet> 转成下面的前端需要的格式:有些可能需要转变,比如xml中的result 结果 需要转成 code:200, datalist 变成 data key 等等 { "code": 200, "msg": "success", "time": 1521538833, "data": { "count": 1, "list": [{ "vm_id": "VM264b80d21dc682d4254f8e", "execute_time": "" }] } }
项目:JFinal