CK.Text.JSONVisitor.VisitObjectContent C# (CSharp) Method

VisitObjectContent() public method

Visits a comma seprarated list of "property" : ... fields until a closing } is found or Matcher.IsEnd becomes true.
public VisitObjectContent ( ) : bool
return bool
        public virtual bool VisitObjectContent()
        {
            int propertyNumber = 0;
            while( !_m.IsEnd )
            {
                SkipWhiteSpaces();
                if( _m.TryMatchChar( '}' ) ) return true;
                int startPropertyIndex = _m.StartIndex;
                string propName;
                if( !_m.TryMatchJSONQuotedString( out propName ) ) return false;
                SkipWhiteSpaces();
                if( !_m.MatchChar( ':' ) || !VisitObjectProperty( startPropertyIndex, propName, propertyNumber ) ) return false;
                SkipWhiteSpaces();
                // This accepts e trailing comma at the end of a property list: ..."a":0,} is not an error.
                _m.TryMatchChar( ',' );
                ++propertyNumber;
            }
            return false;
        }