def get_json(url):
    resp = urllib2.urlopen(url)
    return json.load(resp, object_hook=format_book_entry), resp.getcode()
Return the state of the sensor.
dataset/ETHPy150Open cbyn/bitpredict/collect-data/collect_books.py/get_json--crossover with--dataset/ETHPy150Open home-assistant/home-assistant/homeassistant/components/sensor/twitch.py/TwitchSensor.state