fix json parsing try/catch to not catch error in callback