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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T08:30:27+00:00 2026-06-17T08:30:27+00:00

hi i have this json data var json = { "@@lang": "en-US", "ResultSet": {

  • 0

hi i have this json data

   var json = { "@@lang": "en-US", "ResultSet": { "@@version": "2.0", "@@lang":   "en-US", "Error": "0", "ErrorMessage": "No error", "Locale": "en-US", "Found": "1", "Quality": "99", "Results": [{ "quality": "72", "latitude": "30.778864", "longitude": "76.686648", "offsetlat": "30.778864", "offsetlon": "76.686648", "radius": "400", "name": "30.78,76.69", "line1": "30.78,76.69", "line2": "", "line3": "Mohali, Sahibzadaajit Singh Nagar, Punjab", "line4": "India", "house": "", "street": "", "xstreet": "", "unittype": "", "unit": "", "postal": "", "neighborhood": "", "city": "Mohali", "county": "Sahibzadaajit Singh Nagar", "state": "Punjab", "country": "India", "countrycode": "IN", "statecode": "PB", "countycode": "", "uzip": "", "hash": "", "woeid": "2290786", "woetype": "7"}]} };

i need second last value –woeid:2209786

How can i get this value using json?


Update / Edit (Formatted JSON)

{
    "@@lang": "en-US",
    "ResultSet": {
        "@@version": "2.0",
        "@@lang": "en-US",
        "Error": "0",
        "ErrorMessage": "No error",
        "Locale": "en-US",
        "Found": "1",
        "Quality": "99",
        "Results": [
            {
                "quality": "72",
                "latitude": "30.778864",
                "longitude": "76.686648",
                "offsetlat": "30.778864",
                "offsetlon": "76.686648",
                "radius": "400",
                "name": "30.78,76.69",
                "line1": "30.78,76.69",
                "line2": "",
                "line3": "Mohali, Sahibzadaajit Singh Nagar, Punjab",
                "line4": "India",
                "house": "",
                "street": "",
                "xstreet": "",
                "unittype": "",
                "unit": "",
                "postal": "",
                "neighborhood": "",
                "city": "Mohali",
                "county": "Sahibzadaajit Singh Nagar",
                "state": "Punjab",
                "country": "India",
                "countrycode": "IN",
                "statecode": "PB",
                "countycode": "",
                "uzip": "",
                "hash": "",
                "woeid": "2290786",
                "woetype": "7"
            }
        ]
    }
}
  • 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-17T08:30:28+00:00Added an answer on June 17, 2026 at 8:30 am

    you can go through the objects with ‘.’ operator and since Results is in array use ‘[]’ and get the required object…
    try this.

    var val=json.ResultSet.Results[0].woeid
    alert(val);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hi I have this code to parse JSON on JQUERY var json_text2 = $.parseJSON('{data:[[1340650436,2.00000],[1340736844,4.00000]],label:Waist
I have this code which reads the JSON data: $.getJSON(data.json, function(data){ var output =
I currently have this: $.getJSON('test.json', function(data) { var items = []; $.each(data, function(key, val)
I have this JSON data: var people = [ { name : John, age
Let's say i have this json data. How to transform the tags to a
I used to have this kind of simple JSON data and I could successfully
i have json data like this {GetStudentDetails: {TotalCount:5, RootResults:[ {city:West Chester,country:USA,state:PA ,student_id:100}, {city:Philly,country:USA,state:PA,student_id:101}, {city:Buffalo,country:USA,state:NY,student_id:102},
I have a JSON data like this: { hello: { first:firstvalue, second:secondvalue }, hello2:
I have some data and need to create a json file with this structure
I am getting JSON string from website. I have data which looks like this

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.