wrapped JSON ping in try/catch