My current challenge involves utilizing a Firefox addon that supplies me with the following variable:
[{errorMessage:"TypeError: a is null", sourceName:"http://pagead2.googlesyndication.com/pagead/js/graphics.js",
lineNumber:17, console:null}]
From Firebug, I have identified this variable as "e".
I can enter e and print it as shown above.
When I attempt to execute e.toString(), I receive:
[object Object]
Upon typing e.errorMessage, it returns as undefined.
If I try JSON.parse(e), an unexpected character error is generated.
How can I extract the data from this object? Regardless of my efforts such as using JSON.parse, JSON.stringify, or iterating through it, all I receive are either [object Object] or undefined values.