119 const std::string& warning,
120 std::vector<std::string>&& context = std::vector<std::string>()) = 0;
Base interface for all JSON handlers. Types that need to be deserialized from JSON should implement I...
virtual IJsonHandler * readArrayEnd()=0
Called when the JSON parser encounters the end of an array.
virtual IJsonHandler * readArrayStart()=0
Called when the JSON parser encounters the start of an array.
virtual IJsonHandler * readUint32(uint32_t i)=0
Called when the JSON parser encounters a uint32 value.
virtual IJsonHandler * readObjectKey(const std::string_view &str)=0
Called when the JSON parser encounters a key while reading an object.
virtual IJsonHandler * readUint64(uint64_t i)=0
Called when the JSON parser encounters a uint64 value.
virtual IJsonHandler * readNull()=0
Called when the JSON parser encounters a null.
virtual IJsonHandler * readObjectEnd()=0
Called when the JSON parser encounters the end of an object.
virtual IJsonHandler * readDouble(double d)=0
Called when the JSON parser encounters a double value.
virtual IJsonHandler * readBool(bool b)=0
Called when the JSON parser encounters a boolean value.
virtual void reportWarning(const std::string &warning, std::vector< std::string > &&context=std::vector< std::string >())=0
Report a warning while reading JSON.
virtual IJsonHandler * readObjectStart()=0
Called when the JSON parser encounters the beginning of an object.
virtual IJsonHandler * readString(const std::string_view &str)=0
Called when the JSON parser encounters a string value.
virtual IJsonHandler * readInt64(int64_t i)=0
Called when the JSON parser encounters an int64 value.
virtual IJsonHandler * readInt32(int32_t i)=0
Called when the JSON parser encounters an int32 value.
Classes for reading JSON.