JsonObject.h 473 B

1234567891011121314151617181920212223242526
  1. #pragma once
  2. #include "JsonContainer.h"
  3. class JsonObject : public JsonContainer
  4. {
  5. public:
  6. JsonObject()
  7. {
  8. }
  9. explicit JsonObject(JsonNode* node)
  10. : JsonContainer(node)
  11. {
  12. }
  13. JsonValue operator[](const char* key);
  14. void remove(const char* key);
  15. JsonArray createNestedArray(const char* key);
  16. JsonObject createNestedObject(const char* key);
  17. private:
  18. JsonNode* getOrCreateNodeAt(const char* key);
  19. };