try{ var result=JSON.parse(r); //... } catch(e){ }
Please note: JavaScript is required to post comments.