Modification to graph_xport.php to output JSON data