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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T20:55:34+00:00 2026-06-03T20:55:34+00:00

I am having trouble trying to parse JSON with child nodes using jquery. I

  • 0

I am having trouble trying to parse JSON with child nodes using jquery. I keep getting no values from the json. My code to parse json is as follows:

 function getSC () {
  var sc2url = 'http://sc2ranks.com/api/base/teams/sea/Classified$788.json?appKey=foo.bar?jsonp=sc2test?';
 $.ajax({
  url: sc2url,
  dataType: 'jsonp',
  jsonp: 'jsonp=sc2test',
  success: sc2test,
  cache: true
 })
}

function sc2test(data) {
  console.log(data);
  var test = data['teams'][0]['divison'];
  console.log(test);
}

and the json that is returned is:

 {
    "portrait": {
        "row": 0,
        "icon_id": 0,
        "column": 0
    },
    "character_code": 788,
    "updated_at": "2012-05-08T01:33:27Z",
    "achievement_points": 970,
    "teams": [
        {
            "fav_race": "protoss",
            "bracket": 1,
            "division": "Division Zekrath Dixie",
            "ratio": "1.00",
            "world_rank": 8683,
            "wins": 97,
            "is_random": false,
            "updated_at": "2012-05-09T08:25:54Z",
            "losses": 0,
            "points": 342,
            "region_rank": 303,
            "division_rank": 21,
            "league": "diamond"
        }
    ],
    "bnet_id": 39578,
    "name": "Classified",
    "region": "sea",
    "id": 1645881
}

there is 2 child nodes in it and I would like to know how I can parse them using jQuery of javascript. Thanks in advance.

  • 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-03T20:55:35+00:00Added an answer on June 3, 2026 at 8:55 pm

    You misspelled division. You have divison.

    Example

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

Sidebar

Related Questions

I'm trying to parse SQL search conditions and having trouble getting the parser to
I'm trying to parse JSON in android but am having trouble with accessing sub
I am having trouble trying to move sub nodes or parent nodes up or
I'm having trouble trying to manipulate music using buttons I can't seem to make
I'm new to android... having trouble trying to open a URL from a live
I'm trying to parse Reddit's XML file with javascript and im having trouble retrieving
I'm trying to parse a simple XML file but I'm having trouble trying to
I am trying my hand at learning node.js using coffeescript but am having trouble
I'm trying to parse using a case/when statement with regex in it. I'm having
I'm just getting started with using php DOMDocument and am having a little trouble.

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.