argopy.stores.httpstore.open_json

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:

  1. Download from url raw data with httpstore.download_url and then

  2. Create 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_url

  • errors (str, default: raise) –

    Define how to handle errors:
    • raise (default): Raise any error encountered

    • ignore: Do not stop processing, simply issue a debug message in logging console and return None

    • silent: Do not stop processing and do not issue log message, return None

  • kwargs (dict) –

Return type:

Any