The #json data tome times thrown an error on console when it get null data instead json data, so here is the best way to check if your data is #json then use it.
function isJSON(json_obj){
try{
JSON.parse(json_obj);
} catch(e){
return false;
}
return true;
}
Currently working in software house named Wiztech as position of Senior Web Developer, I love to share tips and techniques of programming, author of SDTuts 27 years old, I am from Karachi, Sindh, Pakistan and I am working on Web Designing and Development with Adobe Photoshop CS, HTML, CSS, JavaScript,…Read More Description