首页 > 解决方案 > 在 pyspakr 中修复格式错误的 json

问题描述

我有一个 json 文件,我从以下格式的源代码中收到该文件。{ “api_version”:“1.3”,“response_code”:“200”,“id”:“3237490513229753”,“lon”:“38.969916127827”,“lat”:“45.069889625267”,“page_url”:null,“name” :“ATB”,“firm_group”:{“id”:“3237499103085728”,“count”:“1”},“city_name”:“克拉斯诺达尔”,“city_id”:“3237585002430511”,“地址”:“Turgeneva, 172/1”、“create_time”:“2008-07-22 10:02:04 07”、“modification_time”:“2013-08-09 20:04:36 07”、“see_also”:[{“id” :“3237491513434577”,“lon”:38.973110606808,“ lat": 45.029031222211, "name": "Advance", "hash": "5698hn745A8IJ1H86177uvgn94521J3464he26763737242Cf6e654G62J0I7878e", "ads": { "ponded_article": { "title:"aman.English", "text": "Business. }, "warning": null } } ] } 我知道没有用双引号括起来的标题键存在语法问题。如何自动修复 json 文件的基本语法问题?任何帮助将不胜感激。null } } ] } 我知道没有用双引号括起来的标题键存在语法问题。如何自动修复 json 文件的基本语法问题?任何帮助将不胜感激。null } } ] } 我知道没有用双引号括起来的标题键存在语法问题。如何自动修复 json 文件的基本语法问题?任何帮助将不胜感激。

标签: jsonpysparkmalformed

解决方案


推荐阅读