DataGrid in Dojo , with json data from a servlet.

Posted by Magesh on Stack Overflow See other posts from Stack Overflow or by Magesh
Published on 2010-03-11T08:22:33Z Indexed on 2010/03/13 19:35 UTC
Read the original article Hit count: 484

Filed under:
|
|

Hello , i am using JSON for first time... and want to fill my datagrid with my JSON data, this is my JSON data,

{ "head": { "vars": [ "s" , "fname" , "lname" ] } , "results": { "bindings": [ { "s": { "type": "uri" , "value": "http://tn.gov.in/Person/41" } , "fname": { "type": "literal" , "value": "Gayathri" } , "lname": { "type": "literal" , "value": "Vasudevan" } } , { "s": { "type": "uri" , "value": "http://tn.gov.in/Person/37" } , "fname": { "type": "literal" , "value": "Magesh" } , "lname": { "type": "literal" , "value": "Vasudevan" } } , { "s": { "type": "uri" , "value": "http://tn.gov.in/Person/39" } , "fname": { "type": "literal" , "value": "Vasudevan " } , "lname": { "type": "literal" , "value": "Srinivasan" } } ] } }

I want to display fname and lname in the data grid how should i so it? can any one give a sample code which works for above JSON ? i tried a lot with examples , i am getting a blank grid

© Stack Overflow or respective owner

Related posts about dojo

Related posts about datagrid