I'm fetching via ajax
ajax(
{
url: ...,
type: 'json'
},
function(data) {
// Success!
console.log(data);
},
function(error) {
// Failure!
}
)
And I'm getting
[HANDY] pebble-app.js:?: [object Object]
If I know what attributes to look for, I can access them by data.key
. But how about objects with unknown attributes or if I simply need deep debugging?
Use JSON.stringify so you can see the values of your object as a JSON string in the app log:
Lot's of Pebble.js examples use that to debug.