JsonExtensions.ToJObjectWithValue(IDictionary, IEnumerable) Method
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.
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.