<PackageReference Include="Newtonsoft.Json" Version="4.5.6" />

XmlNodeConverter

Converts XML to and from JSON.
public string DeserializeRootElementName { get; set; }

Gets or sets the name of the root element to insert when deserializing to XML if the JSON structure has produces multiple root elements.

public bool OmitRootObject { get; set; }

Gets or sets a value indicating whether to write the root JSON object.

public bool WriteArrayAttribute { get; set; }

Gets or sets a flag to indicate whether to write the Json.NET array attribute. This attribute helps preserve arrays when converting the written XML back to JSON.