/**
* @param {Object} jq
* @param {Object} d3
*/
(function(jq, d3) {
'use strict';
var request = d3.request("https://finance.google.com/finance/info?client=ig&q=goog", function (error, data) {
var jsonString = "",
jsonDataArray = [],
jsonObject = {};
if (error) {
throw error;
}
console.dir(data);
jsonDataArray = data.responseText.split("//");
jsonString = jsonDataArray[1].trim();
console.log(jsonString);
jsonObject = JSON.parse(jsonString);
console.dir(jsonObject);
});
}($, d3));
$.getJSON("https://finance.google.com/finance/info?client=ig&q=goog&callback=?", function(data) {
console.log(data)
});
--
You received this message because you are subscribed to the Google Groups "d3-js" group.
To unsubscribe from this group and stop receiving emails from it, send an email to d3-js+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to d3-js+un...@googlegroups.com.