Hi Guys,

I m trying my hand on getJSON

I am able to see response through fiddler

Please let me know what i am missing

This is my function

      $(document).ready(function() {

         $.getJSON("http://127.0.0.1:8001/category/1?
format=json&callback=?",
function(json) {
    alert(json.category);
    alert("test");
});
      });

Response i am receiving is:-

"{\"Category\" : [{\"CategoryId\" : \"1\",\"Description\" : \"General
\",\"Category\" : \"General\",\"Name\" : \"nipun\",\"Path\" : \"d:\/
testing\/nipun.txt\",\"Title\" : \"\",\"PublishedDate\" : \"\",\"Locked
\" : \"False\",\"HideInSearch\" : \"False\",\"FileDesc\" : \"\"},
{\"CategoryId\" : \"1\",\"Description\" : \"General\",\"Category\" :
\"General\",\"Name\" : \"WCFtest\",\"Path\" : \"d:\/testing\/
WCFtest.txt\",\"Title\" : \"\",\"PublishedDate\" : \"\",\"Locked\" :
\"False\",\"HideInSearch\" : \"False\",\"FileDesc\" : \"\"}]};"

Reply via email to