app/json_lite.h¶
a tiny, dependency-free JSON reader.
The GUI’s personality files are the only JSON the app consumes, and the appliance build is deliberately lean (no vendored third-party libs), so rather than pull in a full JSON library we parse the small, fixed schema in §4 of docs/gui-docs/PLAN.md with this self-contained recursive-descent reader. It supports the full JSON grammar (objects, arrays, strings with escapes, numbers, true/false/null) but is read-only — there is no serializer.
-
namespace kirin
-
namespace json¶
Enums
-
class Value¶
- #include <json_lite.h>
Public Functions
-
Value() = default¶
-
inline bool isNull() const¶
-
inline bool isBool() const¶
-
inline bool isNumber() const¶
-
inline bool isString() const¶
-
inline bool isArray() const¶
-
inline bool isObject() const¶
-
inline bool asBool(bool fallback = false) const¶
-
inline double asNumber(double fallback = 0.0) const¶
-
inline int asInt(int fallback = 0) const¶
-
inline long asLong(long fallback = 0) const¶
-
bool contains(const std::string &key) const¶
-
inline size_t size() const¶
Public Static Functions
-
Value() = default¶
-
class Value¶
-
namespace json¶