How to count how many JSON object with { } in Python

I want to count and list every JSON item by numbers. Is it possible to count the item by the { }? For example, it will search for the first {} and set it as the first item and so on.

enter image description here

Expected output: enter image description here


  tmp = json.dumps(file_data, ensure_ascii=False, indent="t") + "n" + "n"

  reviewjson.insert(END, tmp)


you can convert your json to python dict easily, that should get you job done

tmp_dict = json.loads(tmp)

Leave a Reply

Your email address will not be published. Required fields are marked *