Network-related functions.
Synchronously fetch the URL returning a deserialized JSON response.
The following is done with a URL whose response is in JSON:
hash-table, with JSON null values converted to nil.
hash-table object.
Any failure in the HTTP request will raise an error message. Refer to Emacs Lisp Reference Manual for guidance on handling this condition ((elisp)Handling Errors).
Example:
(restlib-fetch-json "https://wttr.in/?0&format=j1")