import requests
import json


def get_device_response(ctx):
    """Return the deserialized JSON response for /stat/device (devices)"""
    r = requests.get(
        ctx.obj["URL"] + "stat/device",
        verify=ctx.obj["VERIFY"],
        cookies=ctx.obj["COOKIES"],
    )
    return json.loads(r.text)