static inline bool jsonToBool(const JsonValue& js) { return js.type() == JsonValue::Boolean && js.data() == "true"; }