How to convert JSON serialized data to NSDictionary

前端 未结 5 582
小鲜肉
小鲜肉 2020-12-02 14:28

I have used this method,

NSDictionary *jsonObject=[NSJSONSerialization 
       JSONObjectWithData:jsonData 
                  options:NSJSONReadingMutableLea         


        
5条回答
  •  日久生厌
    2020-12-02 14:37

    NSError* error;
    NSDictionary* json = [NSJSONSerialization JSONObjectWithData:responseData options:kNilOptions error:&error];
    

    This is just a more succinct version of the top post.

提交回复
热议问题