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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T10:48:45+00:00 2026-06-10T10:48:45+00:00

The JSON: { count: 1, rows: [ { user_id: 7, lat: 48.452583, lng: -123.545052,

  • 0

The JSON:

{
    "count": 1,
    "rows": [
        {
            "user_id": "7",
            "lat": "48.452583",
            "lng": "-123.545052",
            "distance": "0.4852177729308128"
        }
    ]
}​

This comes into my function(data) and I’m trying to access count and then the user_id ..

downloadUrl(searchUrl, function(data) {
    alert( "Locations Found: " + data[0].count );
});

data.count, data[0].count … don’t work. And I’m drawing a blank as to how to access them.

  • 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-10T10:48:46+00:00Added an answer on June 10, 2026 at 10:48 am

    If your data is string (not data-type:json) then you need to parse it as follows

    var obj=$.parseJSON(data);
    

    Then use

    obj.count;
    obj.rows[0].user_id;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have this JSON object: {error:null, result:[{id:1234567890, count:1, recipients: [u3848, u8958, u7477474 ], dateCreated:2012-06-13T09:13:45.989Z
I need to create a json message like this: { success:true, count:3, data: [
From the following json snippet: cbfunc22({ query: { count: 2, created: 2012-06-18T11:18:15Z, lang: en-US,
Consider a javascript code snippet, which uses JSON to get twitter followers count. The
i'm tying to implement a Servlet which generates a JSON the same way this
I'm working on this app, but somehow, its not returning any rows in my
Is there any effective way to generate JSON out of MYSQL query like this?
Here is the JQGrid setup information jQuery(document).ready(function () { jQuery(#list).jqGrid({ url: '/TabMaster/GetGridData', datatype: 'json',
I am creating a multidimensional array for sections / rows based on json data
<WebMethod(Description:=JSON Hierarchy Object)> _ <ScriptMethod(ResponseFormat:=ResponseFormat.Json)> _ Public Function xmlData() As Object Using _ds As

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.