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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T14:34:06+00:00 2026-06-13T14:34:06+00:00

I have jquery ajax call , and this is the code for successful response

  • 0

I have jquery ajax call , and this is the code for successful response

success: function (msg) {
                    console.log(msg.d);
                    var Ticket = msg.d;
                    console.log(Ticket);
                }

The first console.log returns an object of exactly what I want, here is a part of what it looks like in console.

[
Object
CouponCode: null
DateCreated: "10/31/2012 12:00:00 AM"
EndDate: "11/23/2012"
EventID: "47c30437-fb5a-461f-9990-a95cc23f1d55"

The actual ajax response from webmethod.

{"d":[{"__type":"Ticket","rsID":"240bac97-b97b-4d89-ac48-cd692c66a7ad","EventID":"47c30437-fb5a-461f-9990-a95cc23f1d55","Title":  ....

How can I access this object?? you see from the console response , now I want the EventID

and

var Ticket = msg.d;  //this is what I showed from console
var Ticket = $.parseJSON(msg.d);  //returns null
console.log(Ticket.EventID);  //returns null
console.log(Ticket);  // returns null

How can I access this msg.d ???>

  • 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-13T14:34:07+00:00Added an answer on June 13, 2026 at 2:34 pm

    It looks to me like you have an array of objects, and Ticket is a reference to that array. Even if there is only one object in it, you will need to reference that in the array. Try this:

    console.log(Ticket[0].EventID);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

On my main page I have this jquery code which does an ajax call
I have a jquery json ajax call and inside my success function I have
I have an ajax call handled with jquery like this: var GetAppointmentDate = {'DateInput'
I have a jQuery AJAX call with type:'GET' like this: $.ajax({type:'GET',url:'/createUser',data:userId=12345&userName=test, success:function(data){ alert('successful'); }
A situation I ran across this week: we have a jQuery Ajax call that
I have a web service that returns this string via the jQuery $.ajax() call
I have a jQuery AJAX function like this: $.ajax({ url: 'crud/clients.php', dataType: 'json', type:
I have an jquery ajax success function which uses a template to put json
I have this jquery ajax code that submits my form if it gets changed.
Hi I have a JQuery js that does something like this after AJAX call:

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.