Improve Json parsing

Surround json.get() function calls with try catch.