json problem!!!

json problem!!!

SubhashSubhash Posts: 1Questions: 0Answers: 0
edited April 2010 in General
I have a hidden field where in i get the json data,,from that i need to get the datatable, please help for that
thye code is as follows,,

$(document).ready(function() {
var test = $("input[name='example1']").val();
alert(test);
$('#dynamic').html( '' );
$('#example').dataTable( {
"": test,
"aoColumns": [
{ "sTitle": "mobile" },
{ "sTitle": "deviceType" },
{ "sTitle": "requestDateTime" },
{ "sTitle": "processedDateTime"},
{ "sTitle": "orgName"},
{"sTitle": "isProcessed"}
]
} );
} );

and the hidden value is "[{"newUserRequestId":169,"mobile":"+91xxxxxxxx","deviceType":"+919xxxxxxxxxx","requestDateTime":"Nov 3, 2009 9:57:24 AM","processedDateTime":"Apr 17, 1988 8:28:06 AM","isProcessed":1,"orgName":"xddfdf dfdfd","orgId":4},{"newUserRequestId":171,"mobile":"+91xxxxxxxxxx","deviceType":"+91xxxxxxxxx","requestDateTime":"Nov 3, 2009 1:20:02 PM","processedDateTime":"Mar 15, 2010 8:49:41 PM","isProcessed":1,"orgName":"xxcwd sdsd","orgId":4}]

please help me how to render this..

thnx,
Subhash
This discussion has been closed.