Documentation for json_from_string is missing the empty string (returns NULL and error NULL)
When parsing the empty string, json_from_string
seems to return NULL
and does not set an error. That could be fine, but then it is not idiomatic to check for errors.
I suggest to document that a return value of NULL does not imply an error to be set.
Or, maybe more intuitive for users of the library, set an error when the string is empty.
I have noticed this, because my flatpak-builder crashes on an empty JSON file.