Add mg_json_get_hex(), mg_json_get_b64()

This commit is contained in:
Sergey Lyubka committed 2022-06-22 16:28:22 +01:00
1 parent a68f3dc4eb
commit 898e2b1e30
6 files changed
+117 -2

No files matched your search

+2 -1
View File
@@ -14,4 +14,5 @@ int mg_json_get(const char *buf, int len, const char *path, int *toklen);
bool mg_json_get_num(struct mg_str json, const char *path, double *v);
bool mg_json_get_bool(struct mg_str json, const char *path, bool *v);
char *mg_json_get_str(struct mg_str json, const char *path);
char *mg_json_get_hex(struct mg_str json, const char *path);
char *mg_json_get_hex(struct mg_str json, const char *path, int *len);
char *mg_json_get_b64(struct mg_str json, const char *path, int *len);