Skip to content

Commit 7d99fef

Browse files
committed
Issue 45: Updated method ContentHelper.FormatJson() to use JToken.Parse() instead of JObject.Parse().
1 parent bf47e19 commit 7d99fef

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

ChangeLog.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1-
# 1.11.0 (1st April 2025)
1+
# 1.11.0 (11th April 2025)
22

33
LogicAppUnit Testing Framework:
44

55
- The framework now supports parameterised connections that are created by the Standard Logic App extension. [[Issue #42](https://github.com/LogicAppUnit/TestingFramework/issues/42)]
66
- Bumped versions of NuGet packages to remove critical vulnerabilities in some of the transitive packages.
77
- Added configuration for NuGet Audit so that any future vulnerabilities are logged as build warnings and do not break the LogicAppUnit build. [[Issue #40](https://github.com/LogicAppUnit/TestingFramework/issues/40)]
8+
- Updated method `ContentHelper.FormatJson()` to use `JToken.Parse()` instead of `JObject.Parse()`. [[Issue #45](https://github.com/LogicAppUnit/TestingFramework/issues/45)]
89

910

1011
# 1.10.0 (4th November 2024)

src/LogicAppUnit/Helper/ContentHelper.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -194,9 +194,9 @@ public static string FormatJson(string json)
194194
CommentHandling = CommentHandling.Ignore
195195
};
196196

197-
// Format the JSON by loading into a JObject and then extracting it as a string.
197+
// Format the JSON by loading into a JToken and then extracting it as a string.
198198
// Perhaps a little heavy-handed, but it does the trick.
199-
var obj = JObject.Parse(json, settings);
199+
var obj = JToken.Parse(json, settings);
200200
return obj.ToString();
201201
}
202202

0 commit comments

Comments
 (0)