eg: add string syntax attribute to parse methods · json-everything/json-everything@6ef2101 · GitHub
Then the IDE and the compiler can check the string syntax
public static JsonPath Parse([StringSyntax("jsonpath")] string source, PathParsingOptions? options = null)
{
options ??= new PathParsingOptions();
if (options.TolerateExtraWhitespace)
source = source.Trim();
int index = 0;
return PathParser.Parse(source.AsSpan(), ref index, options, !options.AllowRelativePathStart);
}