Beispiel #1
0
        public static (JsonToken token, string buffer) Read(this JsonReader reader)
        {
            var part   = new BufferPart();
            var result = reader.Read(ref part, out var buffer);

            return(result, part.Length > 0 ? part.Text.Substring(part.Start, part.Length) : buffer);
        }
Beispiel #2
0
        private static JsonToken SkipFirst(string input)
        {
            var part   = new BufferPart();
            var reader = new JsonReader(input);

            ValueSkipper.SkipNext(reader);
            return(reader.Read(ref part, out var _));
        }