| 12345678910111213141516171819202122232425262728293031 |
- #pragma once
- class JsonValue;
- struct JsonNode;
- class JsonObject
- {
- friend JsonValue;
- public:
- JsonObject()
- : _node(0)
- {
- }
- JsonObject(JsonNode* node)
- : _node(node)
- {
- }
- size_t size();
- JsonValue operator[](const char* key);
- bool operator==(const JsonObject& other) const;
- private:
- JsonNode* _node;
- JsonNode* getOrCreateNodeAt(char const* key);
- };
|