You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
var apiKey = [you'll need to use yours to repro: https://secure.mashery.com/login/edmunds.mashery.com/];
var apiEndPoint = "https://api.edmunds.com/api/vehicle/v2/makes?fmt=json&api_key=" + apiKey;
Meteor.http.get(apiEndPoint,
function(error, result) {
if (!error && result.statusCode === 200) {
// This breaks JetSetter. I think it's because the value of the variable is too large:
// var res = JSON.parse(result.content);
// makes = res.makes;
// console.log(res.makes); // array of 62 objects
// Session.set('jsonResMakes', makes);
// This works great
var test = [{niceName: 'a'}, {niceName: 'b'}, {niceName: 'c'}];
Session.set('jsonResMakes', test);
} else {
console.log('didn\'t work...');
}
});
The text was updated successfully, but these errors were encountered:
Example:
The text was updated successfully, but these errors were encountered: