Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Replace null values in Json file
Post: RE: Replace null values in Json file

Sorry again, i proved the code and when i try read the json generated, now give me error message: with open("CON_ERROR_LUNES.json", "r") as f: data = json.load(f)ValueError: Extra data: line 2 co...
burnsssss General Coding Help 11 30,522 Jun-11-2018, 09:45 AM
    Thread: Replace null values in Json file
Post: RE: Replace null values in Json file

(Jun-11-2018, 08:18 AM)volcano63 Wrote: My advice - above- with string replacement would have worked too, but this is a proper way. You cannot change nested structures without diving in with recursi...
burnsssss General Coding Help 11 30,522 Jun-11-2018, 08:52 AM
    Thread: Replace null values in Json file
Post: RE: Replace null values in Json file

(Jun-10-2018, 06:50 PM)buran Wrote: 1. the way you read the json is not right with open("con_error.json", "r") as f: data = json.load(f)now you have your json as data dict 2. if use str.replace...
burnsssss General Coding Help 11 30,522 Jun-11-2018, 07:50 AM
    Thread: Replace null values in Json file
Post: Replace null values in Json file

Hi all!! i am new in forum so i have very much to read! I have one problem with some code in python. I am trying to replace None values in Json file to "vacio" values. My example of read file is: d...
burnsssss General Coding Help 11 30,522 Jun-10-2018, 05:08 PM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020