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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T20:44:53+00:00 2026-06-02T20:44:53+00:00

I am getting a JSON object using the following code: // Check that the

  • 0

I am getting a JSON object using the following code:

// Check that the token has been updated, then submit the form as required
$.when( $.getJSON(url + 'scripts/json.php'), button).then(function(json, button) {

}

If I output the values in the console window as follows:

console.log(json);

I get the following:

[Object { token="cdad8422e88787958729e21cce102cb0"}, "success", Object { readyState=4, responseText="{"token":"cdad8422e88787958729e21cce102cb0"}", status=200, more...}]

But trying to get the value of ‘token’ using this:

console.log(json.token);

I get ‘undefined’

  • 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-02T20:44:53+00:00Added an answer on June 2, 2026 at 8:44 pm

    It’s an Array with Objects in it. You can access it via json[0].token.

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

Sidebar

Related Questions

In the following Jackson/Java code that serializes objects into JSON, I am getting this:
I have the following code, using Crockford's json2 to parse the object into json
So, I'm getting a bunch of string values from a JSON object and then
I am iterating through a JSON object and I am getting the data and
I m getting Time data in this format in an JSON Object. created_time: 2012-04-01T15:02:52+0000
I am getting JSON response from the server..Inside that JSON string i am having
HI, I am using the following code request.js var request; function runAjax(JSONstring) { //
I am using the following code to send a sample message from the content
I'm getting the following json response for one of my android service server response,im
I have found the following piece of code which uses XmlHttpRequest to read JSON

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.