Possible Duplicate:
How to parse JSON in iOS AppIPhone解析JSON
我有以下的JSON:
NSString *jsonResult = @"{\"code\":\"000\",\"message\":\"success\",\"datas\":[{\"datas\":[{\"service_name\":\"user_info\",\"name\":\"Account Test 32\",\"number\":123,\"company\":\"ABC\",\"currency\":\"USD\",\"balance\":\"1000\",\"profit\":\"-80.00\",\"credit\":\"0.00\",\"equity\":\"1000.00\",\"leverage\":100,\"free_margin\":\"1000.00\",\"free_margin_mode\":1.0,\"server_name\":\"localhost\",\"stopout_level\":5,\"stopout_mode\":0}],\"service_name\":\"user_info\"}]}";
谁能举个例子如何解析呢?
你为什么要解析JSON?这是你从web服务获得的有效载荷吗? – rjgonzo
是的,它是来自Web服务的有效载荷。 – user772315