/// <summary> /// Gets the value of the element as a non-empty and non-whitespace <see cref="string"/>. /// </summary> public static string GetNonWhiteSpaceString(this JsonElement element) => element.GetNonWhiteSpaceStringOrNull() ?? throw new InvalidOperationException( "Cannot read the specified JSON element as a non-empty and non-whitespace string value." );