Home >Backend Development >C#.Net Tutorial >C# uses Newtonsoft's Json.NET to serialize and deserialize objects
Json.NET is a popular .NET high-performance JSON framework. Newtonsoft's Json.NET can be used in C# to serialize and deserialize objects.
In C#, you can quickly generate json and interpret json by using json.net. You can ignore certain attributes in the object during serialization and simplify the size of json. At the same time, LINQ can be used to query and edit json.
C# Json.NET used by json (1)
Json.NET is a popular .NET high-performance JSON framework. Newtonsoft’s Json.NET is used in C# for serialization and reverse. Serialization.
C# Json.NET using json (2)
Introduces various parameter settings and property settings of C# json.net, and explains in detail through official documents. Includes: Serialization Attributes, Serialization Callbacks, Serialization Error Handling, Preserving Object References,...
C# Json.NET used by json (3)
Use json.net in C# to sequence json data change. This article introduces various setting properties of json.net, including: JSON serializing dates in JSON, reducing serialized JSON size, deserializing partial JSON fragments, conditional attribute serialization, using ContractResolver for serialization, using serialization tracking Perform debugging.
C# Json.NET used by json (4) - LINQ to JSON
LINQ to JSON is an API for processing JSON objects. It was designed with LINQ in mind for fast querying and creation of JSON objects. LINQ to JSON is located under the Newtonsoft.Json.Linq namespace.
C# Using Json.NET (5) - Special Chapter
Introduces the performance optimization issues of json.NET (interpreting json through the input stream), using JSON mode to verify JSON, To manually read and write JSON, Json.NET provides JsonReader and JsonWriter classes, conversion between json and xml.
C# json using Json.NET (6) - usage example
json.net usage sample program code.
Related articles:
Look at C, C, C#, Java, through static local variables, Features of PHP
The above is the detailed content of C# uses Newtonsoft's Json.NET to serialize and deserialize objects. For more information, please follow other related articles on the PHP Chinese website!