JSON Conversion Tool

Source: Internet
Author: User

#!/usr/bin/env python
# Coding:utf-8
A = ' [{\ ' headers\ ': {\ ' topic\ ': \ ' test1\ ', \ ' key\ ': \ ' 01234567891234560123456789123456\ ', \ ' timestamp\ ': 1497583079293 },\ "body\": \ "{\" tkeyword\ ": \" security risk \ ", \" id\ ": \" 01234567891234560123456789123456\ ", \" url\ ": \"/http Epaper.chinatibetnews.com/xzrb/html/2017-06/16/content_773650.htm

\ ", \" title\ ": \" Strict check security risks \ ", \" content\ ": \" Summer for the fire multiple period. In order to prevent, to minimize the occurrence of fire accidents, improve the public awareness of fire safety, in recent days, all over the region in the fire department in-depth areas under construction sites, public places of entertainment, such as fire Safety special inspection, strict investigation of various types of fire hazards and fire violations. \\r\\n fire officers and soldiers in Linzhi City, Pakistan to check hotel fire emergency facilities. Shao   \\r\\n Rikaze Fire inspectors conduct safety checks on construction site fire equipment. Shao    ", \" author\ ": Null,\" from\ ": \" Tibet daily \ ", \" time\ ": 1497542400000,\" tag\ ": Null,\" images\ ": 0,\" Imageurl\ ": \" \ ", \" comments\ ": 0,\" views\ ": 0,\" praises\ ": 0,\" place\ ": \" Linzhi   Baba   shigatse \ ", \" person\ ": \" \ ", \" Keyword\ ": \" security   Fire officers   Linzhi   Basque area   violations   Fire safety   fire   fire   fire equipment   fire \ "Hash\" : \ "cdeef4587d88f1e4081d336a1bcea73 c756ed843f7122d365724845ff108bf9 cb78413481339c2a2a4593053632a936 \ ", \" paragraphhash\ ": \" \ ", \" segment\ ": \" Summer   summer   season     fire   fire   disaster   multiple   multiple   multi-issue     for   anti-  precautionary   preventive  - - - -the- - -max    -Limit   limit     Ground   minus   reduce   less   fire   fire   fire   disaster   event   accident   so     FA   Occurrence   Health   improvement   high   Guang &nbsP     Large group   group   crowd       elimination   Fire   Fire safety   anti   safety   security   Safety Awareness       Awareness   knowledge   company   days   Day-to-date    - - -all-zone  -    All-around       Fire   anti-  department   door   deep   in-depth  - - - - - - -construction   Construction   Engineering   sites     public   public   Total     Entertainment   Casino   le   Arena   venues     Open   Development       fire   fire safety   anti-  safety   security   All   special     inspection   review   check   Strict   Strict investigation   check     categories     fire   fire   disaster   hidden   pitfalls   suffering   and   elimination   fire   prevention   violation   violations   violations   Law   line   behavior     eliminate   fire   fire officers   anti   officers   officers   Bing   in   forest   Linzhi   City   bar   Ikea     area   inspection   Check   Review   Hotel   eliminate   Fire   Defense   should   emergency   urgent   facilities   apply   Shaw     Day   Shigatse   Rikaze   Kerala       Fire   anti   regulatory   supervision  Supervisors   Supervisor         construction   building   work   site     anti-fire   firefighting equipment   prevention   Equipment   Progressive         security     full   inspection   review   Check the ", \" titlesegment\ ": \" Strict investigation   safety hazard \ ", \" taskid\ ": 105662,\" taskname\ ":" Tibet Daily _ Whole station collection ", \" groupid\ ": 105660,\" groupname\ ": \" Tibet daily Tibetan version \ " Siteid\ ": 0,\" country\ ": 0,\" language\ ": 2052,\" sitetype\ ": 6,\" channel\ ": 8888,\" definedtype\ ": 0,\" DefinedSite\ ": \ "105 678 1371 1410 1461\", \ "pr\": 7,\ "headline\": 0,\ "overseas\": 0,\ "topicid\": 0,\ " Hotchannel\ ": 0,\" addon\ ": 1497582608000,\" customerid\ ": \" 18 40 54 54 54\ ", \" SChannel\ ": 0,\" Scatagory\ ": 0,\" continent\ ": 0,\" tissue\ ": 0,\" istopic\ ": 0,\" pure\ ": \" ecdeef4587d88f1e4081d336a1bcea73\ ", \" Pureadj\ ": \" c756ed843f7122d365724845ff108bf9\ ", \" pun\ ": \" \ ", \" nounnum\ ": \" cb78413481339c2a2a4593053632a936\ ", \ "Departments\": \ "\", \ "brands\": \ "\", \ "companies\": \ "\", \ "domain\": \ "chinatibetnews.com 

\ ", \" product\ ": \" \ ", \" Work\ ": \" \ ", \" heading\ ": 0,\" isvideo\ ": 0}\"}] '
A = A.replace (' \ "', '" ')
Import JSON
bb = Json.loads (Json.dumps (a))
Print (BB)

JSON Conversion Tool

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.