Previous Projects/Goal-Bilby-master/SourceCode&WARfile/WebContent/scripts/main.js
/**
 * Save the current graph to JSON String
 */
Save the current graph to JSON String
Save the current graph to JSON String
function toJson() {
	json = JSON.stringify(graph);
	var blob = new Blob([json], {
		type: "text/plain;charset=utf-8"
	});
	saveAs(blob, "save" + ".json");
}
function toJson ( ) { json = JSON . stringify ( graph ) ; var blob = new Blob ( [ json ] , { type : "text/plain;charset=utf-8" } ) ; saveAs ( blob , "save" + ".json" ) ; }
Save the current graph to JSON String
Save the current graph to JSON String