aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes JSON response into HTML Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "JSON response into HTML" Watch "JSON response into HTML" New topic
Author

JSON response into HTML

Tarik Ansari
Ranch Hand

Joined: Dec 31, 2008
Posts: 50
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
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15300
    
    6

How do you know that 'result' is a JSON object? What is calling your ServiceSucceeded function?


GenRocket - Experts at Building Test Data
Tarik Ansari
Ranch Hand

Joined: Dec 31, 2008
Posts: 50
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
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15300
    
    6

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
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15300
    
    6

Actually, I take back my last statement.



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



That is a single object.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JSON response into HTML