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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T22:55:05+00:00 2026-06-04T22:55:05+00:00

The following JSON feed contains orders. How can I retrieve each order, when it

  • 0

The following JSON feed contains orders.

How can I retrieve each order, when it doesn’t contain a key (can´t use objectForKey)? Between the opening bracket and the first curly bracket there is no key.

[ <-----
    { <-----
        "person": {
            "address": "My road",
            "city": "My City",
            "name": "My Name",
        },
        "orderDate": "30.05.2012 10:27",
        "orderId": 10001,
        "orderlines": [
            {
                "unit": {
                    "unitId": "RA005",
                    "name": "My Unit name",
                },
                "id": 10007,
                "deliveryInfo": {
                    "count": 1,
                    "date": "30.05.2012",
                    "format": "MY_FORMAT",
                },
                "sum": 0,
                "details": "Testing",
                "priority": 3,
            }
        ],
        "received": true,
        "status": "REGISTERED",
        "sumPrice": 0
    },
    {
        "person": {
            "address": "My road 2",
            "city": "My City 2",
            "name": "My Name 2",
        },
        "orderDate": "30.04.2012 10:27",
        "orderId": 10002,
        "orderlines": [
            {
                "unit": {
                    "unitId": "RA006",
                    "name": "My Unit name 2",
                },
                "id": 10008,
                "deliveryInfo": {
                    "count": 2,
                    "date": "01.06.2012",
                    "format": "MY_FORMAT",
                },
                "sum": 0,
                "details": "Testing",
                "priority": 2,
            }
        ],
        "received": true,
        "status": "REGISTERED",
        "sumPrice": 0
    }
]
  • 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-04T22:55:06+00:00Added an answer on June 4, 2026 at 10:55 pm

    whenever you see [] (square brackets), it represents array. so use object at index to return the at indexes. one approach is to pass the object into array like

    NSMutableArray *arr = (NSMutableArray*) jsonData;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I try to get parse JSON response for the following link: https://graph.facebook.com/feed/?ids=135395949809348,149531474996&access_token= The response
using the following feed: http://api.twitter.com/1/statuses/user_timeline.json?screen_name=microsoft&include_rts=1&count=10 I am successfully able to loop through this to
I have the following JSON feed: {mouldings:[{moulding_id_2:{cost:3.1,width:45}},{moulding_id_4:{cost:1.5,width:30}},{moulding_id_6:{cost:2.1,width:50}}],material_costs:[{mountboard:{cost:0.00000246494303242769}},{glass:{cost:0.0000032426589803639}},{backing_board:{cost:0.00000135110790848496}}],app_options:[{vat:{value:17.5}},{wastage:{value:20}},{markup:{value:3}}]} I am trying to extract the cost
My rails app gets the following JSON feed from mixcloud and sticks the results
I'm trying to use FullCalendar to display my events from a JSON feed. It's
I have the following code which loads a JSON feed and creates all the
I have a JSON feed that I'm parsing. Here's the following code samples: JSON
I have the following json string and I want to retrieve just the email
I have following JSON object. {feed:[ {news: {adopted_from:null,user_id:null,description:this is test,id:2} }, {news: {adopted_from:null,user_id:null,description:like unlike
I have the following JSON content that I'm pulling from a service feed: [

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.