How to create JSON Array string given below?

后端 未结 3 1405
[愿得一人]
[愿得一人] 2021-01-16 13:06

I want to create and to send JSON Array string given below: I am using JSON Framework, it can parse JSON array but how to create JSON Array

{
\"deferred\": [         


        
3条回答
  •  醉话见心
    2021-01-16 13:52

    SBJSON is useful for the same. For better guidance Tutorial: JSON Over HTTP On The iPhone

    SBJSON will work like...

    SBJSON *json = [[SBJSON new] autorelease];  
    NSMutableArray *ArrayResponse = [[NSMutableArray alloc] initWithArray:[json objectWithString:responseString error:nil]];
    

提交回复
热议问题