mirror of
https://github.com/cesanta/mongoose.git
synced 2025-01-18 15:13:00 +08:00
Docs nitpick
This commit is contained in:
parent
013bc58371
commit
50d0d68f45
@ -2756,7 +2756,8 @@ Return value: non-NULL on success, NULL or error
|
||||
Usage example:
|
||||
|
||||
```c
|
||||
char *str = mg_json_get_str(mg_str("{\"a\":\"hi\"}", "$.a")); // str = "hi"
|
||||
struct mg_str json = mg_str("{\"a\": \"hi\"}"); // json = {"a": "hi"}
|
||||
char *str = mg_json_get_str(json, "$.a"); // str = "hi"
|
||||
free(str);
|
||||
```
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user