2
Reply

webapi

Akash Patil

Akash Patil

Jul 11 2015 9:43 AM
351
hello
 
i have JSON data and i want to dispay in html.i get some error.
 
i have JSON data like=
 
[1]
0:
{
Id: "72c8d71f-5b3f-4812-98db-346df89ed9d7"
KeyWord: "Exam"
Value: " ??????"
UseInSentence: "This is Tough Exam"
WordType: "noun"
}
 
 
Below My JavaScript
 
function Go() {

$.getJSON('http://localhost:12702/api/WordDictionaryE2M?word=' + $('#txtSearch').val(), function (data) {

$('#div').text(data);

});
And I get Error like=
 
[object Object]
 
 
 
 

Answers (2)