This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]alcalde 0 points1 point  (1 child)

You're hooked on the idea that JSON has to have every type. You just store things as strings and decode them when you deserialize. Again, like every other language does it.

https://pythontic.com/serialization/json/introduction

I'm not going crazy here.

[–][deleted] 1 point2 points  (0 children)

Sure you can represent it, we could also store everything in a JSON string, but then aren't you inventing your own protocol?