你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
JsonExtensions Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
JSON
extensions
public static class JsonExtensions
type JsonExtensions = class
Public Module JsonExtensions
- Inheritance
-
JsonExtensions
Fields
JsonContentType |
The JSON content type for HTTP requests. |
JsonMediaTypeSerializer |
The JSON media type serializer. |
JsonObjectTypeSerializer |
The JSON object type serializer. |
MediaSerializationSettings |
The JSON media serialization settings. |
ObjectSerializationSettings |
The JSON object serialization settings. |
Methods
CanConvertTo<TType>(JToken) |
Checks if a conversion from the supplied Newtonsoft.Json.Linq.JToken to a |
FromJson<T>(Stream) |
Deserialize object from a JSON stream. |
FromJson<T>(String) |
Deserialize object from the JSON. |
ToFormattedJson(Object) |
Serialize object to formatted JSON. |
ToJObjectWithValue(IDictionary, IEnumerable) |
Converts an IDictionary object to Newtonsoft.Json.Linq.JObject with an extra level labeled as "value". |
ToJson(Object) |
Serialize object to the JSON. |
ToJToken(Object) |
Serialize object to JToken. |
TryConvertTo<TType>(JToken, TType) |
Checks if a conversion from the supplied Newtonsoft.Json.Linq.JToken to a |
TryConvertTo<TType>(String, TType) |
Checks if a conversion from the supplied Newtonsoft.Json.Linq.JToken to a |