Exemple #1
0
        private void ReadKeyValuePair(JsonStringReader keyReader, JsonReaderDirector director, JsonObject result)
        {
            JsonString key = (JsonString)keyReader.Read();

            this._json.ReadWhitespace();

            // Assure colon between key/value
            if (this._json.Read() != 58)
            {
                throw new JsonFormatException("Expected ':' after object key");
            }

            result.Add(key.Value, director.ReadValue());
        }