Exemple #1
0
        public override bool?ReadAsBoolean()
        {
            if (currentSlice == null)
            {
                SetCurrentFromArray();
            }

            if (currentSlice == null)
            {
                return(null);
            }

            var value = currentSlice.ToBoolean();

            SetToken(JsonToken.Boolean, value);
            currentSlice = null;
            return(value);
        }