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