summaryrefslogtreecommitdiff
path: root/json-glib/json-utils.c
Commit message (Collapse)AuthorAgeFilesLines
* Update the documentation of the utility APIEmmanuele Bassi2021-06-101-7/+6
|
* docs: Initial, rough port away from gtk-docEmmanuele Bassi2021-06-081-11/+5
| | | | | | | | | | Drop `SECTION` blurbs. Use gi-docgen syntax for internal links. Use summary lines for gi-docgen indices. Use Markdown syntax for code fragments.
* Document json_from_string() nullabilityEmmanuele Bassi2020-08-241-2/+2
| | | | | | | | The function can return NULL even without setting an error, so we need to add a `nullable` annotation. While at it, document the handling of empty strings more explicitly. Fixes: #46
* utils/json_from_string: Don't reset user-provided error argumentHeinrich Fink2017-03-181-1/+0
| | | | | | | | In json_from_string, just pass the user-provided GError** to json_parser_load_from_data. Otherwise json_from_string will never propagate any parser errors back to the caller. https://bugzilla.gnome.org/show_bug.cgi?id=766281
* core: Optimize json_from_string() to avoid copyOle André Vadla Ravnås2017-03-181-1/+1
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=774688
* Add simple JSON/string utilitiesEmmanuele Bassi2015-06-091-0/+103
Wrap JsonParser and JsonGenerator in simple, easy to call functions that manage the objects for you.