Newtonsoft exception throws, "Input string '08' is not a valid number" : <p>I am trying to make a basic c# code copied from the web (<a href="http://scriptopia.co.uk/Post.php?id=8" rel="nofollow noreferrer">http://scriptopia.co.uk/Post.php?id=8</a>) so as to familiarize myself with firebase. The code seems to work fine by sending the Time data to the database except for the 8th second. Can someone tell me why this strange behavior? </p>

<pre><code>        while (true)
        {
            DateTime date = DateTime.Now;
            string hour = date.ToString("HH");
            string minutes = date.ToString("mm");
            string seconds = date.ToString("ss");

            string jsondata = "{'Time':{'Hour':  " + hour + ",'Minute':  " + minutes + ", 'Second':  " + seconds + ", }}";
            JObject data = JObject.Parse(jsondata);
            string json = JsonConvert.SerializeObject(data);


            var request = System.Net.WebRequest.CreateHttp("https://******.firebaseio.com/.json?auth=***db**secret***");
            request.Method = "PATCH";
            request.ContentType = "json";
            var buffer = Encoding.UTF8.GetBytes(json);
            request.ContentLength = buffer.Length;
            request.GetRequestStream().Write(buffer, 0, buffer.Length);
            var response = request.GetResponse();
            json = (new System.IO.StreamReader(response.GetResponseStream())).ReadToEnd();
        }
</code></pre>

<p>I was hoping to receive continuous time data without any error, however in this case at the 8th second of every minute the code crashes. I tried running it in an online compiler and observed the same results.</p>
