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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T13:20:03+00:00 2026-05-25T13:20:03+00:00

I have a json response that is somewhat unusable. Here is what it looks

  • 0

I have a json response that is somewhat unusable.

Here is what it looks like:


    {
        "9071": {
        "id": "9071",
        "name": "Front Row Side",
        "color": "",
        "sections": [
            {
            "id": "47447",
            "name": "Front Row Side 134",
            "coords": []
            },
            {
            "id": "47443",
            "name": "Front Row Side 120",
            "coords": []
            },
            {
            "id": "47442",
            "name": "Front Row Side 119",
            "coords": []
            },
            {
            "id": "47445",
            "name": "Front Row Side 132",
            "coords": []
            },
            {
            "id": "47444",
            "name": "Front Row Side 121",
            "coords": []
            },
            {
            "id": "47439",
            "name": "Front Row Side 115",
            "coords": []
            },
            {
            "id": "47438",
            "name": "Front Row Side 104",
            "coords": []
            },
            {
            "id": "47441",
            "name": "Front Row Side 117",
            "coords": []
            },
            {
            "id": "47440",
            "name": "Front Row Side 116",
            "coords": []
            },
            {
            "id": "47446",
            "name": "Front Row Side 133",
            "coords": []
            },
            {
            "id": "47437",
            "name": "Front Row Side 103",
            "coords": []
            },
            {
            "id": "47436",
            "name": "Front Row Side 102",
            "coords": []
            },
            {
            "id": "227801",
            "name": "Front Row Side 131",
            "coords": []
            }
        ]
        },
        "9072": {
        "id": "9072",
        "name": "Front Row End Zone",
        "color": "",
        "sections": [
            {
            "id": "47453",
            "name": "Front Row End Zone 114",
            "coords": []
            },
            {
            "id": "47454",
            "name": "Front Row End Zone 124",
            "coords": []
            },
            {
            "id": "47455",
            "name": "Front Row End Zone 125",
            "coords": []
            },
            {
            "id": "47456",
            "name": "Front Row End Zone 128",
            "coords": []
            },
            {
            "id": "47449",
            "name": "Front Row End Zone 107",
            "coords": []
            },
            {
            "id": "47450",
            "name": "Front Row End Zone 108",
            "coords": []
            },
            {
            "id": "47451",
            "name": "Front Row End Zone 111",
            "coords": []
            },
            {
            "id": "47452",
            "name": "Front Row End Zone 112",
            "coords": []
            },
            {
            "id": "47457",
            "name": "Front Row End Zone 129",
            "coords": []
            },
            {
            "id": "47448",
            "name": "Front Row End Zone 105",
            "coords": []
            }
        ]
        },
        "9073": {
        "id": "9073",
        "name": "Panthers Club Side",
        "color": "",
        "sections": [
            {
            "id": "47459",
            "name": "Panthers Club Side 102",
            "coords": []
            },
            {
            "id": "47458",
            "name": "Panthers Club Side 101",
            "coords": []
            },
            {
            "id": "47471",
            "name": "Panthers Club Side 132",
            "coords": []
            },
            {
            "id": "47472",
            "name": "Panthers Club Side 133",
            "coords": []
            },
            {
            "id": "47473",
            "name": "Panthers Club Side 134",
            "coords": []
            },
            {
            "id": "47462",
            "name": "Panthers Club Side 115",
            "coords": []
            },
            {
            "id": "47463",
            "name": "Panthers Club Side 116",
            "coords": []
            },
            {
            "id": "47460",
            "name": "Panthers Club Side 103",
            "coords": []
            },
            {
            "id": "47461",
            "name": "Panthers Club Side 104",
            "coords": []
            },
            {
            "id": "47466",
            "name": "Panthers Club Side 119",
            "coords": []
            },
            {
            "id": "47464",
            "name": "Panthers Club Side 117",
            "coords": []
            },
            {
            "id": "47465",
            "name": "Panthers Club Side 118",
            "coords": []
            },
            {
            "id": "47470",
            "name": "Panthers Club Side 131",
            "coords": []
            },
            {
            "id": "47469",
            "name": "Panthers Club Side 122",
            "coords": []
            },
            {
            "id": "47468",
            "name": "Panthers Club Side 121",
            "coords": []
            },
            {
            "id": "47467",
            "name": "Panthers Club Side 120",
            "coords": []
            }
        ]
        },


Every place where the set of array beings with a number – like this: “9072”: { or “9073”: { , i basically need to just remove that.

Any ideas?

  • 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-05-25T13:20:04+00:00Added an answer on May 25, 2026 at 1:20 pm

    It sounds like you want to convert the Object to an Array and have each direct property of the main object be an index of the array. If so, you can do this like:

    var o = JSON.parse(yourData),
        a = [];
    
    for (var p in o) {
        if (o.hasOwnProperty(p)) {
            a.push(o[p]);
        }
    }
    

    Then the array a will contain the objects contained in the main properties such that a[0] == o['9071'], a[1] == o['9072'], and a[2] == o['9073'].

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a JSON response that looks like this. I want to extract the
I have a JSON response from a web server that looks like this: {success:true,
I'm have trouble grabbing the response JSON data that's returned via AJAX call. Here
Suppose I have a PHP script that returns a json response. It looks something
I have a JSON response that returns an array like so: [1, 1] [2,
I have a JSON response that is formatted from my C# WebMethod using the
I'm trying to generate a JSON response that includes some HTML. Thus, I have
I have a JSON result that contains numerous records. I'd like to show the
I have a JSON response from a web service that I need to be
I have an array of data that is returned as a JSON response. The

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.