/// <summary>
            /// Initializes a new instance of the <see cref="JsonTextNavigator"/> class.
            /// </summary>
            /// <param name="buffer">The (UTF-8) buffer to navigate.</param>
            /// <param name="skipValidation">whether to skip validation or not.</param>
            public JsonTextNavigator(byte[] buffer, bool skipValidation = false)
            {
                IJsonReader jsonTextReader = JsonReader.Create(buffer, skipValidation);
                if (jsonTextReader.SerializationFormat != JsonSerializationFormat.Text)
                {
                    throw new ArgumentException("jsonTextReader's serialization format must actually be text");
                }

                this.rootNode = JsonTextParser.Parse(jsonTextReader);
            }