Need to view the JSON data

I need to debug a problem in the Console but need to see the contents of an array of JSON objects.

How can I do this?

I know the format in C# of the object, which has a property Name. But when I use $(this).Name it comes back undefined. How can I access this property from a JSON object?

Thanks!
newbiewebSr. Software EngineerAsked:
Who is Participating?
 
Gurvinder Pal SinghConnect With a Mentor Commented:
nothing, does it give compilation error?
have you done this to it before
var data = eval(jsonData);
0
 
leakim971Connect With a Mentor PluritechnicianCommented:
// this is you ajax callback part
function(data) {
     alert( data["Name"] ); // if you've something like { "Name":"mssmlfsfmslfk", "Id":123 }
// else try :
     alert( JSON.stringify(data) );
0
Cloud Class® Course: Python 3 Fundamentals

This course will teach participants about installing and configuring Python, syntax, importing, statements, types, strings, booleans, files, lists, tuples, comprehensions, functions, and classes.

 
newbiewebSr. Software EngineerAuthor Commented:
I can print data.Name and that prints the right name to the console. But I have trouble with this:

If (data.Name == "HI" )

what's wrong with my format?
0
 
newbiewebSr. Software EngineerAuthor Commented:
No, I have not. But the whole JSON object is linked to a jqGrid.
0
 
newbiewebSr. Software EngineerAuthor Commented:
I use Firebug and Firefox. How do I find a compliance error?
0
 
Gurvinder Pal SinghConnect With a Mentor Commented:
you should be able to see them on the console
0
 
newbiewebSr. Software EngineerAuthor Commented:
The problem involved being attached to the jqgrid, I think...
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.