I have a JSON file formated as such:

{
    "facets": [
        {
            "name": "Friends",
             "photoSrc" : "test.jpg",
            "socialContext" : "Nightlife"

        },
        {
            "name": "Tennis2",
            "socialContext" : "Tennis2",
            "photoSrc" : "test2.jpg"
        }
    ]
}

I do $.getJSON("js/facetWidget/moreFacets.json",  function(data)
{console.log(data);});

and it returns me this:

[Object name=Friends photoSrc=test.jpg, Object name=Tennis2
socialContext=Tennis2]

is this something that I'm doing wrong...? if i just do a raw $.ajax
and print out the data, everything is there, but as soon as I change
dataType to JSON, it doesn't carry through all the values. The JSON
validates on JSONLint, btw.

bug?

-Daniel
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"jQuery Development" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/jquery-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to