Hi,
I am trying to parse some JSON Code in the webview of an android app; but it is completely failing.
and the results:
I have tried using JSON2, and JQueries parseJSON function; both have returned the same error;
I am trying to parse some JSON Code in the webview of an android app; but it is completely failing.
Code:
window.android.log(base64_decode(emails[i]));
var test = JSON.parse(base64_decode(emails[i]));
and the results:
Code:
Javascript_LOG: {"subject":"cmU6IHJlcGx5IHRvIHlvdXIgInJvb21tYXRlIHdhbnRlZCEgbGFyZ2Ugcm9vbSBmb3IgcmVudCBpbiBzdywgNSBtaW4gZnJvbSBscnQiIGFkIG9uIGtpamlqaQ==","replyto":"","from":"ZXdib2JtYW4rY2FmXz1ob3Rub29iPXNlY2NvbW0ubmV0QGdtYWlsLmNvbQ==","date":"MTM3ODM0MzQwMA==","id":92}
E/Web Console: Uncaught SyntaxError: Unexpected token at file:///android_asset/webView__emailList.html:1
I have tried using JSON2, and JQueries parseJSON function; both have returned the same error;