Make pinging the server with json work nicely