I have a dictionary that contains a list like this
data = {'data': [0,0,4,279,14,46,10,5,
0,0,1,257,13,44,10,5,
1,1,254,0]}
When I am trying to convert this into json, it is giving me an error
json.dumps(data)['data']
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-94-ca909e16d3cc> in <module>
6 0,0,1,257,13,44,10,5,
7 1,1,254,0]}
----> 8 json.dumps(data)['data']
TypeError: string indices must be integers