JTokenUtility.AsBoolean method

Returns a Boolean corresponding to the JToken if possible.

public static bool? AsBoolean(this JToken? jToken)

Return Value

This method returns null if the JToken is null or if it doesn’t contain a Boolean.

See Also