bool sota_json_get_bool(const char *json, const char *key, bool *out)
Extract true/false.
bool sota_json_is_object(const char *s)
True when s is one JSON object whose brackets pair up and whose strings close, nested at most 8 deep,...
bool sota_json_get_u32(const char *json, const char *key, uint32_t *out)
Extract a non-negative integer (digits only, as the server sends).
bool sota_json_get_string(const char *json, const char *key, char *out, size_t out_cap)
Extract a string value.
bool sota_json_has_key(const char *json, const char *key)
True when the key is present, whatever its value.
bool sota_json_escape(const char *src, char *out, size_t out_cap)
Write src as the inside of a JSON string: " and \ are escaped, newline, carriage return and tab becom...