json_parsing.py 320 B

12345678910111213141516171819
  1. import codecs
  2. import re
  3. import json
  4. fr=codecs.open('c:/tmp/debug.txt','r','utf-8')
  5. lines=fr.readlines()
  6. content=""
  7. for l in lines:
  8. content+=l
  9. print(content)
  10. jsobj=json.loads(content)
  11. for x in jsobj[0][1][1:]:
  12. # print(x[14][0])
  13. print(x[14][11])
  14. print(x[14][10])
  15. print(x[14][2])
  16. print(x[14][78])