i have this function in jsfiddle
https://jsfiddle.net/609erfx4/
and i will write down the code, i am not able to see the code in alert, is something wrong in it
var str = '[{ "data": "ID", "title": "Bill ID", "autoWidth": true },
{ "data": "BillRef", "title":"Bill Ref", "autoWidth": true },
{ "data": "BillDate", "title": "Bill Date", "autoWidth": true },
{ "data": "BillAmount", "title": "Bill Amount", "autoWidth": true },
{ "data": "BillPaid", "title": "Bill Paid", "autoWidth": true },
{ "data": "BillBalance", "title": "Bill Balance", "autoWidth": true, "orderable":false },
{ "data": "PaymentDate", "title": "Payment Date", "autoWidth": true, "orderable":false },
{ "data": "Contact", "title": "Contact", "autoWidth": true, "orderable":false }]';
function f() {
alert(str);
}