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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T19:28:27+00:00 2026-05-31T19:28:27+00:00

I tried but i was unable to parse this json object which comes from

  • 0

I tried but i was unable to parse this json object which comes from an ashx page.I use javascript serializer to serialize list.I showed the returned json just as it is but when i tried to parse it showed only [object Object],[object Object].
If i change the result to this at ashx page and return string
“{ \”Appointment\”:”+ return +”}” then jquery doesn’t see the post as success and fails to parse it.I use jquery 1.7.1.min.js but there was no way of parsing it.These are the methods i used and the json object i tried to parse

$.ajax({
            type: "POST",
            url: "getappointment.ashx",
            data: { StartTime: timec },
            dataType: "Text",
            success: function (msg) {
                var result = jQuery.parseJSON(msg);
                for (var i in result) {
                    alert(result[i].appointmentID)
                }
            }


        });

1)

 parsed= $.secureEvalJSON(JSON.stringify(json));
   alert(parsed.Appointment[1].appointmentID);

2)

$.each(json.Appointment, function (i, app) {
      alert(json.app.appointmentID.toString());

3)

var test = jQuery.parseJSON(msg);
                alert(test[0].appointmentID);

4)

$.each(msg, function () {
  $.each(this, function (k, v) {
   ...
           });
    });

Json object

[{"appointmentID":"4","coachid":"1","equipmentid":"1","starttime":"18.03.2012 19:14:28","endtime":"18.03.2012 19:14:28"},
{"appointmentID":"8","coachid":"1","equipmentid":"1","starttime":"18.03.2012 19:00:00","endtime":"18.03.2012 19:14:28"}]
  • 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-05-31T19:28:28+00:00Added an answer on May 31, 2026 at 7:28 pm

    You don’t need parse anything – you already have ready to use JSON object.

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

Sidebar

Related Questions

I have tried many ways but unable to do this. I have set the
I am having trouble parsing my JSON which i get from javascript. The format
Silly question, but I'm unable to figure out.. I tried the following in Ruby:
How to create a generic method which can call overloaded methods? I tried but
I tried this but it does not seem to be valid syntax. <xsl:element name=$myElementName></xsl:element>
I have tried this but it does not work (even if I specify .wav
I have tried this but it doesn't work: tell application Preview set myfile to
I need to get value from json. It works perfectly on returned objects, but
I'm trying to use JSON, I'm getting the information from the server so I've
I tried but I guess Message Box only works with win forms. What is

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.