SlickDevTools.JsonToXmlSdk
1.0.1
SlickDevTools.Converters.JsonToXml 1.1.0
Additional DetailsPlease use the updated package SlickDevTools.Converters.JsonToXml 1.1.0
dotnet add package SlickDevTools.JsonToXmlSdk --version 1.0.1
NuGet\Install-Package SlickDevTools.JsonToXmlSdk -Version 1.0.1
<PackageReference Include="SlickDevTools.JsonToXmlSdk" Version="1.0.1" />
<PackageVersion Include="SlickDevTools.JsonToXmlSdk" Version="1.0.1" />
<PackageReference Include="SlickDevTools.JsonToXmlSdk" />
paket add SlickDevTools.JsonToXmlSdk --version 1.0.1
#r "nuget: SlickDevTools.JsonToXmlSdk, 1.0.1"
#:package SlickDevTools.JsonToXmlSdk@1.0.1
#addin nuget:?package=SlickDevTools.JsonToXmlSdk&version=1.0.1
#tool nuget:?package=SlickDevTools.JsonToXmlSdk&version=1.0.1
JsonToXmlConverterService
This library provides a service to convert JSON data to XML format using C#. The main class JsonToXmlConverterService allows you to convert JSON strings to XML strings.
Features
- Easy-to-use JSON to XML conversion
- Allows customization through
JsonToXmlConverterOptions - Returns conversion result in
JsonToXmlConverterResultobject
Usage
- Instantiate
JsonToXmlConverterServiceclass:
JsonToXmlConverterService converterService = new JsonToXmlConverterService();
- Convert JSON to XML:
string json = "{ \"key\": \"value\" }";
JsonToXmlConverterResult result = converterService.ConvertJsonToXml(json);
- Access the converted XML string:
string xml = result.Xml;
Classes
JsonToXmlConverterService
The main class that handles JSON to XML conversion. The constructor takes an optional JsonToXmlConverterOptions parameter to customize the conversion process. It has one public method, ConvertJsonToXml, which takes a JSON string as input and returns a JsonToXmlConverterResult object containing the XML string.
JsonToXmlConverterOptions
A class that allows customization of the JSON to XML conversion process. Currently, it does not have any options, but it can be extended in the future.
JsonToXmlConverterResult
A class that holds the result of the JSON to XML conversion. It has one property, Xml, which contains the converted XML string.
Dependencies
- This library relies on the
JsonToXmlConverterclass to perform the actual JSON to XML conversion. Ensure that this class is included in your project.
License
This project is released under the MIT License.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net7.0 is compatible. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net7.0
- Newtonsoft.Json (>= 13.0.3)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.