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 8832385
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T08:31:01+00:00 2026-06-14T08:31:01+00:00

Hello i get a json that looks like this: features: ( { attributes =

  • 0

Hello i get a json that looks like this:

  features: (
    {
    attributes =         {
        Gecontroleerd = Ja;
    };
    geometry =         {
        x = "5.968097965285907";
        y = "52.50707112779077";
    };
}
)

From this code:

NSDictionary *root = [NSJSONSerialization JSONObjectWithData:responseData options:0 error:nil];
NSArray *data = [root objectForKey:@"features"];
NSLog(@"features: %@", data );

for (NSArray *row in data) {
    NSString *latitude = row[5];
    NSString *longitude = row[7];
    NSString *crimeDescription = @"test";
    NSString *address = @"banaan";

And u need to x values 5.968097965285907 for latitude
and y values 52.50707112779077 for longitude

But i get this error:

 [__NSCFDictionary objectAtIndexedSubscript:]: unrecognized selector sent to instance   0x14831450
 2012-11-14 10:10:59.000 ArrestPlotter[6330:c07] *** Terminating app due to uncaught  exception 'NSInvalidArgumentException', reason: '-[__NSCFDictionary objectAtIndexedSubscript:]: unrecognized selector sent to instance 0x14831450'
 *** First throw call stack:
(0x1860012 0x1655e7e 0x18eb4bd 0x184fbbc 0x184f94e 0x2dbc 0x3b8f 0x1cc1e 0x16696b0 0xfa0035 0x17e3f3f 0x17e396f 0x1806734 0x1805f44 0x1805e1b 0x224a7e3 0x224a668 0x4a765c 0x25bd 0x24e5 0x1)
libc++abi.dylib: terminate called throwing an exception
(lldb) 

Does anyone wich row i need to select?

I guess that the only thing is that the row number needs to be changed. Or maybe there should be something like this : [1][5]. Im not quite sure how this works

  • 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-14T08:31:02+00:00Added an answer on June 14, 2026 at 8:31 am
    NSArray *data = [root objectForKey:@"features"];
    NSLog(@"features: %@", data );
    
    for (NSDictionary *dic in data) {
      NSDictionary geometry = [dic objectForKey:@"geometry"];
      // Do what you want..
      NSString *myAwesomeX = [geometry objectForKey:@"x"];
      NSString *myAwesomeY = [geometry objectForKey:@"y"];
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hello I get a weird error in this code: function validateForm(aform) { var s=;
I got this code in my submit form <form id=myform action='hello.php' method='GET'> <input type=button
For a json object like this, list=[ {name:hello, category:verb}, {name:world, category:noun} ]; What would
I'm trying to get the hello world app running from the doc . I
Hello I've got this query to get users by email, which is an unique
I'm trying to set up a javascript front in that is consuming JSON from
I am writing an application to get the json object from server. for example:
I'm creating a JSON String that's supposed to look like: { request_type:send_string, security_level:0, device_type:ios,
I have a simple object that is deserialized from JSON into a server-side object.
Hello i have a working code that displays a twitter timeline into a textview:

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.