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

  • SEARCH
  • Home
  • 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 8620899
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T06:41:31+00:00 2026-06-12T06:41:31+00:00

[api,[API,Apiales,Apiaceae,Apicomplexa lifecycle stages,Apia,Apicomplexa,Apidae,APIA Leichhardt Tigers,Apical consonant,Apical membrane]] How do i parse this JSON with

  • 0
  ["api",["API","Apiales","Apiaceae","Apicomplexa lifecycle stages","Apia","Apicomplexa","Apidae","APIA Leichhardt Tigers","Apical consonant","Apical membrane"]]

How do i parse this JSON with SBJson Parser for iOS. i need it to be a array with only these values:

  "API","Apiales","Apiaceae","Apicomplexa   lifecyclestages","Apia","Apicomplexa","Apidae","APIA Leichhardt Tigers","Apical consonant","Apical membrane"

My current code:

SBJsonParser *parser = [[SBJsonParser alloc] init];

// Prepare URL request to download statuses from Twitter
NSURLRequest *request = [NSURLRequest requestWithURL:[NSURL URLWithString:@"http://en.wikipedia.org/w/api.php?action=opensearch&search=dj&limit=100&namespace=0&format=json"]];

// Perform request and get JSON back as a NSData object
NSData *response = [NSURLConnection sendSynchronousRequest:request returningResponse:nil error:nil];

// Get JSON as a NSString from NSData response
NSString *json_string = [[NSString alloc] initWithData:response encoding:NSUTF8StringEncoding];

NSDictionary *results = [json_string JSONValue];

NSArray *statuses = [parser objectWithString:json_string error:nil];
  • 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-12T06:41:32+00:00Added an answer on June 12, 2026 at 6:41 am

    Try,

    NSArray *results = [json_string JSONValue];
    
    NSArray *statuses = [results objectAtIndex:1];
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to covert this javascript Array [ Data, [ API, Apiales, Apiaceae, Apia,
The API gives the code as: public function up() { $this->addColumn('table_name', 'column_name', 'string', $options);
This API: /// Returns a list iterator of the elements in this list (in
Archetypes API provides default_method() to populate initial values programmatically. However, since this is a
In API document I found this Since Struts 2.1.3, use StrutsPrepareAndExecuteFilter instead or StrutsPrepareFilter
The API doc says This reference type differs from the others in that it
DoDirectPayment API call requires an IP address field (this is a buyer's IP) so
The api for ServletContext#getRequestDispatcher() says: This method returns null if the ServletContext cannot return
API Level: 12 (Android 3.1) App Background: Through my Android app I am sending
API in my example returns id, name pair <categories> <category id=5 name=Bollywood/> <category id=484

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.