Home  >  Q&A  >  body text

objective-c - OC解析json數據和發起簡單的WebService請求你們都用什麼啊?

求推薦,尤其訪問Web service希望能找到幾個特別輕量級的包

PHP中文网PHP中文网2754 days ago702

reply all(3)I'll reply

  • 阿神

    阿神2017-04-24 09:13:27

    For simple JSON parsing, SBJSON or something like that will suffice. Of course, the best way is to use NSJSONSerialization. After all, it is the solution that comes with the native SDK, so the efficiency will definitely not be bad. If the request is to return an API in JSON format, AFNetworking 2 already comes with AFJSONResponseSerializer, which will directly convert the response message into an NSDictionary object.

    reply
    0
  • 迷茫

    迷茫2017-04-24 09:13:27

    AFNetworking

    reply
    0
  • PHP中文网

    PHP中文网2017-04-24 09:13:27

    If you just want to parse JSON, there are several third-party frameworks below
    1. TouchJSON
    2. SBJSON
    3.YAJL
    4.JSONKit
    5. NextiveJson

    Actually, I think the built-in API NSJSONSerialization is very good

    reply
    0
  • Cancelreply