Esempio n. 1
0
        public string TryParse(string source, ref int index, ref JsonPath path)
        {
            if (path == null)
            {
                return("Start token not found.");
            }

            var error = source.GetSlices(ref index, out var slices);

            if (error != null)
            {
                return(error);
            }

            path = path.Array(slices.ToArray());
            return(null);
        }
Esempio n. 2
0
 public string TryParse(string source, ref int index, ref JsonPath path)
 {
     path   = path.Array();
     index += 3;
     return(null);
 }