SlickDevTools.JsonToXmlSdk 1.0.1

Suggested Alternatives

SlickDevTools.Converters.JsonToXml 1.1.0

Additional Details

Please 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
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="SlickDevTools.JsonToXmlSdk" Version="1.0.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="SlickDevTools.JsonToXmlSdk" Version="1.0.1" />
                    
Directory.Packages.props
<PackageReference Include="SlickDevTools.JsonToXmlSdk" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add SlickDevTools.JsonToXmlSdk --version 1.0.1
                    
#r "nuget: SlickDevTools.JsonToXmlSdk, 1.0.1"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package SlickDevTools.JsonToXmlSdk@1.0.1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=SlickDevTools.JsonToXmlSdk&version=1.0.1
                    
Install as a Cake Addin
#tool nuget:?package=SlickDevTools.JsonToXmlSdk&version=1.0.1
                    
Install as a Cake Tool

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 JsonToXmlConverterResult object

Usage

  1. Instantiate JsonToXmlConverterService class:
JsonToXmlConverterService converterService = new JsonToXmlConverterService();
  1. Convert JSON to XML:
string json = "{ \"key\": \"value\" }";
JsonToXmlConverterResult result = converterService.ConvertJsonToXml(json);
  1. 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 JsonToXmlConverter class 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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.1 531 4/20/2023 1.0.1 is deprecated because it is no longer maintained.
1.0.0 499 4/20/2023 1.0.0 is deprecated because it is no longer maintained.