• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JSON response into HTML

 
Tarik Ansari
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

Could you please help me in forming the DIV block(HTML) for the response which i got in JSON format.

JSON format:

Snippet:


As of now i am getting the output values as undefined. Appreciate if you could help

Thanks
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How do you know that 'result' is a JSON object? What is calling your ServiceSucceeded function?
 
Tarik Ansari
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ServiceSucceeded function is called after i construct the JSON object, also i checked the result with an alert box which displays the JSON objects
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Tarik Ansari wrote:ServiceSucceeded function is called after i construct the JSON object, also i checked the result with an alert box which displays the JSON objects


How are you constructing the JSON object? If it really was a JSON object, I don't see why it would be failing. So we're obviously missing a piece of the puzzle here.
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Actually, I take back my last statement.



That is an array with a JSON object as 1 element.



That is a single object.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic