Relative Content

Tag Archive for pythonjsonpython-3.x

can’t access json proprety

I’m trying to access the ‘city’ proprety of this json but somehow it doesn’t work , this is the json struct :
{ "ForSaleShopperPlatformFullRenderQuery{"zpid":28657235,"platform":"DESKTOP_WEB","formType":"OPAQUE","contactFormRenderParameter":{"zpid":28657235,"platform":"desktop","isDoubleScroll":true},"skipCFRD":false,"ompPlatform":"web"}": { "property": { "listingDataSource": "Phoenix", "zpid": 28657235, "city": "Boerne", "state": "TX", "homeStatus": "FOR_SALE", "address": { "streetAddress": "111 stone creek", "city": "Boerne", "state": "TX", "zipcode": "78006", "neighborhood": null, "community": null, "subdivision": null },

Decoding error in a json file Extra data. Does anyone know what could be causing this?

As I mentioned yesterday, I started with Python recently and decided to make a bot for Telegram that has a Markov chain, and to train the Markov chain I downloaded the chat history of my group of friends and made a script to filter and separate only the messages from the group, but some errors appeared in the json and as the file is very large, 7193776 lines, I wrote a script that automates the correction of the json as it is unfeasible to correct it manually, I handled exceptions and it is returning this coding error: