Why can't Python parse this JSON data?

后端 未结 9 2461
傲寒
傲寒 2020-11-21 05:06

I have this JSON in a file:

{
    \"maps\": [
        {
            \"id\": \"blabla\",
            \"iscategorical\         


        
9条回答
  •  名媛妹妹
    2020-11-21 05:17

    data = []
    with codecs.open('d:\output.txt','rU','utf-8') as f:
        for line in f:
           data.append(json.loads(line))
    

提交回复
热议问题