diff --git a/Nodejs/Product/Nodejs/Debugger/Communication/DebuggerClient.cs b/Nodejs/Product/Nodejs/Debugger/Communication/DebuggerClient.cs index 72c8791cc..0a8293abe 100644 --- a/Nodejs/Product/Nodejs/Debugger/Communication/DebuggerClient.cs +++ b/Nodejs/Product/Nodejs/Debugger/Communication/DebuggerClient.cs @@ -33,6 +33,10 @@ sealed class DebuggerClient : IDebuggerClient { private ConcurrentDictionary> _messages = new ConcurrentDictionary>(); + private readonly static Newtonsoft.Json.JsonSerializerSettings jsonSettings = new Newtonsoft.Json.JsonSerializerSettings() { + DateParseHandling = Newtonsoft.Json.DateParseHandling.None + }; + public DebuggerClient(IDebuggerConnection connection) { Utilities.ArgumentNotNull("connection", connection); @@ -116,7 +120,7 @@ private void OnConnectionClosed(object sender, EventArgs e) { /// Sender. /// Event arguments. private void OnOutputMessage(object sender, MessageEventArgs args) { - JObject message = JObject.Parse(args.Message); + var message = Newtonsoft.Json.JsonConvert.DeserializeObject(args.Message, jsonSettings); var messageType = (string)message["type"]; switch (messageType) {