I am currently generating JSON using the APEX_JSON package. This works fine, however I am firing the following JavaScript on page load and cannot figure out how to escape the quotes.
function drawChart() {
var jsonData = &P9_JSON.;
var data = google.visualization.DataTable(jsonData);
var options = {
title: 'Test Chart',
pieSliceText: 'value'
};
var chart = new google.visualization.PieChart(document.getElementById('piechart'));
chart.draw(data, options);
}
I am getting errors because " is changed to " in the generated javascript. Any ideas how to replace these? I tried using .replace but it didn't seem to work...
Thanks!