How to convert XML string to JSON using iPhone sdk

前端 未结 2 2021
臣服心动
臣服心动 2020-12-29 16:39

I am implementing a client based application. In that I have an xml string. I need to convert it to JSON format and send to the server. I have no idea on converting this. Ca

2条回答
  •  醉话见心
    2020-12-29 17:11

    Step #1: Read XML into NSDictionary: http://troybrant.net/blog/2010/09/simple-xml-to-nsdictionary-converter/

    Step #2: Convert NSDictionary into JSON: http://code.google.com/p/json-framework/

提交回复
热议问题