Use the built-in json
package: https://docs.python.org/3/library/json.html
import json
# some JSON:
stringifiedJSON = '[{"id": 1, "title": "ble", "description": "ble", "done": true}, {"id":2, "title": "2", "description": "2", "done": true}]'
# parse x:
parsedJSON = json.loads(stringifiedJSON) # a dict representing the JSON
# access specific field
print(parsedJson[1])
Output:
>>> { "id":2, "title":"2", "description":"2", "done":true }
Note that it would be impossible to access the key 2
in the JSON string sample you provided, since it is an array with only 2 elements (indices are zero-based).