System.Text.Json Ad Alanı
, Nesneleri JSON metnine serileştirmek ve JSON metnini nesne serisini seri hale getirmek ve yerleşik UTF-8 desteği içeren JavaScript Nesne Gösterimi (JSON) işlemek için yüksek performanslı, düşük ayırma ve standartlara uyumlu yetenekler sağlar. Provides high-performance, low-allocating, and standards-compliant capabilities to process JavaScript Object Notation (JSON), which includes serializing objects to JSON text and deserializing JSON text to objects, with UTF-8 support built-in. Ayrıca, UTF-8 olarak kodlanmış JSON metnini okumak ve yazmak ve verilerin yapılandırılmış bir görünümünde JSON öğelerine rastgele erişim için bellek içi belge nesne modeli (DOM) oluşturmak için türler sağlar. It also provides types to read and write JSON text encoded as UTF-8, and to create an in-memory document object model (DOM) for random access of the JSON elements within a structured view of the data.
Sınıflar
JsonDocument |
Veri değerlerini otomatik olarak örneklemeden bir JSON değerinin yapısal içeriğini incelemek için bir mekanizma sağlar.Provides a mechanism for examining the structural content of a JSON value without automatically instantiating data values. |
JsonException |
Geçersiz JSON metniyle karşılaşıldığında, tanımlı en yüksek derinlik geçtiğinde veya JSON metni bir nesne üzerindeki bir özelliğin türüyle uyumlu olmadığında oluşan özel bir özel durum nesnesi tanımlar.Defines a custom exception object that is thrown when invalid JSON text is encountered, when the defined maximum depth is passed, or the JSON text is not compatible with the type of a property on an object. |
JsonNamingPolicy |
Dize tabanlı bir adı başka bir biçime dönüştürmek için kullanılan adlandırma ilkesini belirler; örneğin, Camel-küçük harf biçimi.Determines the naming policy used to convert a string-based name to another format, such as a camel-casing format. |
JsonSerializer |
Nesneleri veya değer türlerini JSON 'a serileştirmek ve JSON serisini nesneler veya değer türlerine çıkarmak için işlevsellik sağlar.Provides functionality to serialize objects or value types to JSON and to deserialize JSON into objects or value types. |
JsonSerializerOptions |
İle birlikte kullanılacak seçenekler sağlar JsonSerializer .Provides options to be used with JsonSerializer. |
Utf8JsonWriter |
Salt ileri, önbelleğe alınmamış UTF-8 kodlu JSON metin yazma için yüksek performanslı bir API sağlar.Provides a high-performance API for forward-only, non-cached writing of UTF-8 encoded JSON text. |
Yapılar
JsonDocumentOptions |
, Bir oluşturmak için JSON ayrıştırılırken özel davranış tanımlamasına olanak sağlar JsonDocument .Provides the ability for the user to define custom behavior when parsing JSON to create a JsonDocument. |
JsonElement |
İçindeki belirli bir JSON değerini temsil eder JsonDocument .Represents a specific JSON value within a JsonDocument. |
JsonElement.ArrayEnumerator |
JSON dizisinin içeriği için bir Numaralandırıcı temsil eder.Represents an enumerator for the contents of a JSON array. |
JsonElement.ObjectEnumerator |
JSON nesnesinin özellikleri için bir Numaralandırıcı temsil eder.Represents an enumerator for the properties of a JSON object. |
JsonEncodedText |
UTF-8 veya UTF-16 kodlu metni JSON için uygun bir biçimde dönüştürmek için yöntemler sağlar.Provides methods to transform UTF-8 or UTF-16 encoded text into a form that is suitable for JSON. |
JsonProperty |
JSON nesnesi için tek bir özelliği temsil eder.Represents a single property for a JSON object. |
JsonReaderOptions |
Kullanıcının JSON 'yi okurken özel davranış tanımlamasına olanak sağlar.Provides the ability for the user to define custom behavior when reading JSON. |
JsonReaderState |
Utf8JsonReaderTamamlanmamış verileri işledikten sonra okumaya devam etmek için için sağlanması gereken tüm ilgili durum bilgilerini tutan ve kaydeden bir opak türü tanımlar.Defines an opaque type that holds and saves all the relevant state information, which must be provided to the Utf8JsonReader to continue reading after processing incomplete data. |
JsonWriterOptions |
Kullanıcının, kullanarak JSON yazarken özel davranış tanımlamasına olanak sağlar Utf8JsonWriter .Allows the user to define custom behavior when writing JSON using the Utf8JsonWriter. |
Utf8JsonReader |
Salt ileri, salt okunurdur UTF-8 kodlu JSON metnine erişim için yüksek performanslı bir API sağlar.Provides a high-performance API for forward-only, read-only access to UTF-8 encoded JSON text. |
Numaralandırmalar
JsonCommentHandling |
Utf8JsonReaderYapının açıklamaları nasıl işlediğini tanımlar.Defines how the Utf8JsonReader struct handles comments. |
JsonSerializerDefaults |
Örnek oluşturmak için kullanılabilecek senaryo tabanlı varsayılan serileştirme seçeneklerini belirtir JsonSerializerOptions .Specifies scenario-based default serialization options that can be used to construct a JsonSerializerOptions instance. |
JsonTokenType |
JSON metnini oluşturan çeşitli JSON belirteçlerini tanımlar.Defines the various JSON tokens that make up a JSON text. |
JsonValueKind |
JSON değerinin veri türünü belirtir.Specifies the data type of a JSON value. |
Açıklamalar
Ayrıca bkz System.Text.Json.Serialization . ad alanı, gelişmiş senaryolar ve serileştirme ve seri durumdan çıkarma için özel özelleştirmeler için öznitelikler ve API 'ler içerir.See also the System.Text.Json.Serialization namespace, which contains attributes and APIs for advanced scenarios and customization specific to serialization and deserialization.
Daha fazla bilgi için bkz. genel bakışSystem.Text.Js.For more information, see the System.Text.Json overview.