JSON is sent to server periodically