Class JsonObjectExtensions
Extension methods for working with the JsonObject class.
Inheritance
System.Object
JsonObjectExtensions
Namespace: Telerik.DataSource.Extensions
Assembly: Telerik.DataSource.dll
Syntax
public static class JsonObjectExtensions : Object
Methods
ConvertPropertyName(JsonSerializerOptions, String)
converts the specified name according to the policy, such as camel-casing.
Declaration
public static string ConvertPropertyName(this JsonSerializerOptions options, string propertyName)
Parameters
System.Text.Json.JsonSerializerOptions
options
|
System.String
propertyName
|
Returns
System.String
|
ToJson(IEnumerable<JsonObject>)
Serializes the collection of JsonObject instances to a collection of dictionaries.
Declaration
public static IEnumerable<IDictionary<string, object>> ToJson(this IEnumerable<JsonObject> items)
Parameters
System.Collections.Generic.IEnumerable<JsonObject>
items
|
Returns
System.Collections.Generic.IEnumerable<System.Collections.Generic.IDictionary<System.String, System.Object>>
|