I could not find a built-in way with json.NET to not merge dictionaries when using JObject.Merge similar to MergeArrayHandling.Replace, it would always merge the keys.
jobject.Merge(newJobject, new JsonMergeSettings {
MergeArrayHandling = MergeArrayHandling.Replace,
MergeNullValueHandling = MergeNullValueHandling.Merge
MergeDictionaryHandling = MergeDictionaryHandling.Replace // <<<--- this API seems to be missing
});
Am I missing something obvious or does it not exist today?
I could not find a built-in way with json.NET to not merge dictionaries when using
JObject.Merge
similar toMergeArrayHandling.Replace
, it would always merge the keys.Am I missing something obvious or does it not exist today?