Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个
Object obj = {"RegionName":"North-1","BizPartCode":"test","BizPartName":"FRANCHISE DISTRIBUTION"}
现在我想解析它以获取 RegionName 和 BizPartCode。如何解析?
JSONObject object = new JSONObject(obj.toString()); String RegionName = object.getStirng("RegionName"); String BizPartCode = object.getString("BizPartCode");
你试过了吗 ???
(String)obj.get("RegionName");