Skip to content

Commit

Permalink
Merge pull request #1 from nliviu/readme
Browse files Browse the repository at this point in the history
Fix json_get_bool doc
  • Loading branch information
cpq authored Aug 29, 2023
2 parents abef695 + 0a8afd6 commit f1ba360
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -201,10 +201,10 @@ json_get_num("{\"a\":1.23}", 10, "$.a", &d)); // d == 1.23
### json\_get\_bool()

```c
int mg_json_get_bool(struct mg_str json, const char *path, int *v);
int json_get_bool(const char *buf, int len, const char *path, int *val);
```
Fetch boolean (bool) value from the json string `json` at JSON path
Fetch boolean (bool) value from the json string `buf` at JSON path
`path` into a placeholder `v`. Return true if successful.
Parameters:
Expand Down

0 comments on commit f1ba360

Please sign in to comment.