type(responce) # dict
type(responce['items']) # list
type(responce['items'][0]) # dict
In [1]: def x_in_bounds(x, bounds): return bounds[0] < x < bounds[1]
In [2]: if x_in_range(1, (0, 2)): print('in')
in
echo '{"one":1,"two":2}' | python -mjson.tool
>>> import json
>>> print(json.dumps({'4': 5, '6': 7}, sort_keys=True, indent=4))
{
"4": 5,
"6": 7
}
Listening at: http://127.0.0.1:8000 (10904)