skip to Main Content

I want a convert python to json

I want to convert python parser to json. Here's a code of my python parser. import re import time from urllib.parse import quote, unquote from urllib.request import urlopen import requests from bs4 import BeautifulSoup url = "https://fasie.ru" page = urlopen(url)…

VIEW QUESTION

Can not deserialize JSON with json string inside

I have a json like below. The x's are there to omit sensitive data {"errormessage":"{"timestamp":"2021-10- 19T07:57:35.205+0000","status":400,"error": "Bad Request","message":"Bad Request: xxxx xxx xxx xxx xxx. pathu003d/xxx/verify","path":"/xxx /xxx"}"} I am trying to deserialize this json into the class below public class TransferResponse…

VIEW QUESTION

How to sort output before writing to JSON

I have a problem with sorting data. When I use the json_dic.sort(key= lambda x: x['lastLogonTimestamp'], reverse= False) command I get an error TypeError: '<' not supported between instances of 'str' and 'list'. When I checked the output with the type()…

VIEW QUESTION
Back To Top
Search