Yes @Kevin and @AndrasDeak my previous JSON data is this { "vpn_detail": { "username":"kushpate", "tokens": [ "85188605", "00422786", "94548619", "51249494", "HHEF0EA5", "2E09A81E" ], "cluster_name":"bgl13-vpn-cluster-2.cisco.com" } } Now I have read this JSON data in Outlook email through imaplib, but that data is converted into HTML form , that converted HTML data is here, b'\r\n\r\n\r\n\r\n\r\n\r\n
\r\n

\r\n
\r\n
{
\r\n"vpn_detail":
\r\n    {
\r\n        "username":"kushpate&q=\r\nuot;,    
\r\n        "tokens":    =\r\n;
\r\n            [
\r\n                =\r\n;"85188605",
\r\n                =\r\n;"00422786",
\r\n                =\r\n;"94548619",
\r\n                =\r\n;"51249494",
\r\n                =\r\n;"HHEF0EA5",
\r\n                =\r\n;"2E09A81E"
\r\n              ],
\r\n        "cluster_name":"bgl13-=\r\nvpn-cluster-2.cisco.com"
\r\n    }
\r\n
\r\n}
\r\n
\r\n
\r\n

\r\n
\r\n\r\n\r\n' Now I want this HTML data into JSON data same as previous.