libweb.json

JsonService

class libweb.json.JsonService(creds=None, opts=None, **conf)[source]

An HTTP-based service that speaks JSON. Uses jsonpath to parse the returned document.

Keyword Arguments:
 jsonpath (dict or list of dicts) – JSONpath configuration to extract/parse data
get_data()[source]

Make the HTTP requests and yield the data returned

get_results()[source]

Parse the JSON and yield a structured response