Method TryGetObject
- Namespace
- Xunit.Sdk
- Assembly
- xunit.v3.common.dll
TryGetObject(IReadOnlyDictionary<string, object?>, string)
Tries to get an untyped object value from a deserialized JSON object.
public static IReadOnlyDictionary<string, object?>? TryGetObject(IReadOnlyDictionary<string, object?> obj, string key)
Parameters
objIReadOnlyDictionary<string, object>The deserialized JSON object
keystringThe key for the value
Returns
TryGetObject(object?)
Tries to get an untyped object value from a deserialized JSON value.
public static IReadOnlyDictionary<string, object?>? TryGetObject(object? value)
Parameters
valueobjectThe deserialized JSON value