JTokenUtility.AsString method

Returns a string corresponding to the JToken if possible.

public static string? AsString(this JToken? jToken)

Return Value

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

See Also