Megosztás a következőn keresztül:


JsonExtensions.ToJObjectWithValue(IDictionary, IEnumerable) Method

Definition

Converts an IDictionary object to Newtonsoft.Json.Linq.JObject with an extra level labeled as "value".

public static Newtonsoft.Json.Linq.JObject ToJObjectWithValue (this System.Collections.IDictionary dict, System.Collections.IEnumerable keys = default);
static member ToJObjectWithValue : System.Collections.IDictionary * System.Collections.IEnumerable -> Newtonsoft.Json.Linq.JObject
<Extension()>
Public Function ToJObjectWithValue (dict As IDictionary, Optional keys As IEnumerable = Nothing) As JObject

Parameters

dict
IDictionary

The IDictionary object.

keys
IEnumerable

The key set to extract from the IDictionary object. Default is all keys.

Returns

Newtonsoft.Json.Linq.JObject

The conversion result.

Applies to