-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Description
Example:
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...');
}
});
Metadata
Metadata
Assignees
Labels
No labels