Udpating of the call to handle errors thrown by jsonPush