argopy.stores.httpstore.open_json#
- httpstore.open_json(url: str, errors: Literal['raise', 'silent', 'ignore'] = 'raise', **kwargs) Any[source]#
Download and process a json document from an url
Steps performed:
Download from
urlraw data withhttpstore.download_urland thenCreate a JSON with
json.loads().
Each steps can be passed specifics arguments (see Parameters below).
- Parameters:
url (str) β Path to resources passed to
httpstore.download_urlerrors (str, default:
raise) β- Define how to handle errors:
raise(default): Raise any error encounteredignore: Do not stop processing, simply issue a debug message in logging console and return Nonesilent: Do not stop processing and do not issue log message, return None
kwargs (dict) β
dwn_optskey dictionary is passed tohttpstore.download_urljs_optskey dictionary is passed tojson.loads()
- Return type:
Any
See also