Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8127985
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T07:43:49+00:00 2026-06-06T07:43:49+00:00

I need code for read json data from url in ios (objective c) If

  • 0

I need code for read json data from url in ios (objective c)

If you have simple example for me then its good for me

I would like to add the read json method in to delegate.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T07:43:51+00:00Added an answer on June 6, 2026 at 7:43 am
    -(NSArray*)StringToArray:(NSString*)str seprator:(NSString*)sep{
    
    NSArray *retArray = [str componentsSeparatedByString:[[NSString alloc] initWithFormat:@"%@",sep]];
    
    return retArray;
    }
    -(NSString*)getValueFromIndex:(NSString*)indexVal withArray:(NSArray *)warray{
    NSString *retVal = @"";
    for(id list in warray)
    {
        NSMutableArray *response = [self performSelector:@selector(StringToArray:seprator:) withObject:list withObject:@"\":\""];    
    
    
        NSString *str = [response objectAtIndex:0];
    
        str = [str stringByReplacingOccurrencesOfString:@"\"" withString:@""];
        if([str isEqualToString:indexVal])
        {
            retVal = [response objectAtIndex:1];           
            retVal = [retVal stringByReplacingOccurrencesOfString:@"\"" withString:@""];
    
            break;
        }
    }
    return retVal;
    }
    -(NSString*)getValue:(NSString*)val fromArray:(NSString*)arr{
    NSString *retArray = @"";
    
    NSMutableArray *mData = [self performSelector:@selector(StringToArray:seprator:) withObject:arr withObject:@"\",\""];
    
    NSArray *m1;
    for(int i=0;i<[mData count];i++)
    {
        NSString *str=   [mData objectAtIndex:0];
    
        str=[str stringByReplacingOccurrencesOfString:@"\"\":" withString:@""];
        [mData removeObjectAtIndex:0];
        [mData insertObject:str atIndex:0];
        m1 = [self performSelector:@selector(StringToArray:seprator:) withObject:[mData objectAtIndex:i] withObject:@"\":\""];
        NSString *st = [[NSString alloc] initWithFormat:@"%@",[m1 objectAtIndex:0]];
        //UTF8
    
        st = [st stringByReplacingOccurrencesOfString:@"\"" withString:@""];
    
        if([st isEqualToString:val])
        {
            retArray = [[NSString alloc] initWithFormat:@"%@",[m1 objectAtIndex:1]];
            break;
        }
    }
    return retArray;
    }
    -(NSString*)getImageValue:(NSString*)val fromArray:(NSString*)arr{
    //NSString *retArray = @"";
    
    NSArray *mData = [self performSelector:@selector(StringToArray:seprator:) withObject:arr withObject:@","];
    
    NSArray *m1;
    //for(int i=0;i<[mData count];i++)
    //{
    m1 = [self performSelector:@selector(StringToArray:seprator:) withObject:[mData lastObject] withObject:@"image"];
    NSString *st = [[NSString alloc] initWithFormat:@"%@",[m1 objectAtIndex:1]];
    st= [st stringByReplacingOccurrencesOfString:@"\":\"" withString:@""];    
    NSLog(@" Image string %@",st);
    //UTF8
    
    // st = [st stringByReplacingOccurrencesOfString:@"\"" withString:@""];
    
    //if([st isEqualToString:val])
    //{
    //retArray = [[NSString alloc] initWithFormat:@"%@",[m1 objectAtIndex:1]];
    //break;
    //}
    //}
    NSLog(@"st %@",st);
    return st;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to parse json object for this url I have used following code
I need to read certain statistics from iw_statistics structure, here's the code: struct net_device
i need to read from json like this: {error_message:Only post requests are allowed,reservations:null,error_code:1} and
atm i can successfully loading data from a WFC, read the json and put
How to create simple PHP COMET server page displaying current time? I need code
I have the following JQUERY code that I'm expecting to return 3 json results
I want to build a service that will pass the data read from the
i have an html form ,php scrip and jquery. i need a ajax code
I have a pretty nested JSON coming from a ldap_search() call. I would like
I have jQuery Ajax request that sends data to a PHP page that then

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.