Fix JSON check
Merge pull request #3 from weikinhuang/fix-ajax-json-check

Fix JSON check