-
-
Notifications
You must be signed in to change notification settings - Fork 5
JavaScript Object Notation
Taiizor edited this page Mar 1, 2023
·
2 revisions
The JsonExtension
class provides extension methods for working with JSON data in C#.
Converts JSON to XML. Returns a string.
public static string ToXml(string Json = MJJM.Json, string Root = MJJM.Root, bool Special = MJJM.Special, bool Array = MJJM.Array)
-
Json
(optional, default = MJJM.Json): The JSON string to convert. -
Root
(optional, default = MJJM.Root): The root element for the resulting XML. -
Special
(optional, default = MJJM.Special): Whether or not to escape special characters. -
Array
(optional, default = MJJM.Array): Whether or not to include arrays in the resulting XML.
A string representation of the converted XML data.
Converts JSON to XML asynchronously. Returns a task of a string.
public static Task<string> ToXmlAsync(string Json = MJJM.Json, string Root = MJJM.Root, bool Special = MJJM.Special, bool Array = MJJM.Array)
-
Json
(optional, default = MJJM.Json): The JSON string to convert. -
Root
(optional, default = MJJM.Root): The root element for the resulting XML. -
Special
(optional, default = MJJM.Special): Whether or not to escape special characters. -
Array
(optional, default = MJJM.Array): Whether or not to include arrays in the resulting XML.
A task that represents the asynchronous operation. The task result contains a string representation of the converted XML data.
Converts JSON to a human-readable format. Returns a string.
public static string ToRead(string Json = MJJM.Json, string Token = MJJM.Token, string Value = MJJM.Value, string Separator = MJJM.Seperator)
-
Json
(optional, default = MJJM.Json): The JSON string to convert. -
Token
(optional, default = MJJM.Token): The token label to use. -
Value
(optional, default = MJJM.Value): The value label to use. -
Separator
(optional, default = MJJM.Seperator): The separator to use between tokens and values.
A string representation of the converted JSON data in a human-readable format.
Converts JSON to a human-readable format asynchronously. Returns a task of a
- Tax
- Url
- Web
- Ping
- Port
- Text
- Time
- Hash
- Word
- Color
- Speed
- Lottery
- Storage
- Browser
- Unicode
- Password
- JavaScript
- Cryptology
- Typography
- Temperature
- Compression
- Decompression
- Cascading Style Sheets
- JavaScript Object Notation
- Hypertext Markup Language
- Extensible Markup Language
- Extensible HyperText Markup Language