Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: JSON Dump and JSON Load
Post: RE: JSON Dump and JSON Load

(Oct-12-2023, 07:10 AM)buran Wrote: I see the discussion has evolved since I first read this thread in the morning. Although you think you has resolved the problem, I strongly advise you to read Ho...
foxholenoob General Coding Help 8 1,196 Oct-12-2023, 07:21 AM
    Thread: JSON Dump and JSON Load
Post: RE: JSON Dump and JSON Load

Thanks. This is what I was looking for. I think we always hope for a silver bullet cause its so simple to pull data out in a single line of code that you would think it could be brought back in the sa...
foxholenoob General Coding Help 8 1,196 Oct-12-2023, 05:39 AM
    Thread: JSON Dump and JSON Load
Post: RE: JSON Dump and JSON Load

So to expand on this question. My fix worked on my first class but the second class threw an error saying (object not serializable). So on my second class I went back to this: warMapStaticDump = jso...
foxholenoob General Coding Help 8 1,196 Oct-12-2023, 04:01 AM
    Thread: JSON Dump and JSON Load
Post: RE: JSON Dump and JSON Load

Well boy do I feel silly. Its because of this line: default=lambda x: x.__dict__ This was causing the object to be export to JSON to a dictionary. Once I removed that the load worked correctly.
foxholenoob General Coding Help 8 1,196 Oct-12-2023, 12:46 AM
    Thread: JSON Dump and JSON Load
Post: JSON Dump and JSON Load

I apologize, the insert code snippet button isn't working. I am having an issue dumping to json and then reading back in. When I read it back in correctly. In the screenshot you can see visual studio...
foxholenoob General Coding Help 8 1,196 Oct-12-2023, 12:27 AM

User Panel Messages

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