Fix JsonMatcher (parsing DateTimeOffset) (#358)

* .

* JObject Parse

* JsonUtils.Parse

* fix code comments
This commit is contained in:
Stef Heyenrath
2019-10-09 11:16:39 +02:00
committed by GitHub
parent b2167f85ae
commit 7789f94737
4 changed files with 45 additions and 9 deletions

View File

@@ -1,7 +1,8 @@
using System.Linq;
using JetBrains.Annotations;
using JetBrains.Annotations;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using System.Linq;
using WireMock.Util;
using WireMock.Validation;
namespace WireMock.Matchers
@@ -93,7 +94,7 @@ namespace WireMock.Matchers
break;
case string stringValue:
jtokenValue = JToken.Parse(stringValue);
jtokenValue = JsonUtils.Parse(stringValue);
break;
default: