Quote:
Originally Posted by Frenzie
None is Python null. You'd think the JSON library would convert it to null though, not string "None" (which isn't what "None" is, anyway).
|
Yeah, it doesn't. Which is highly frustrating when trying to decode a timestamp, because of course the parser errors out when it sees "None" instead of a RFC3339 formatted timestamp.
What's really annoying is that null is used elsewhere in the JSON.
EDIT: Just thinking about it a bit more, the problem probably isn't with the JSON encoder, but rather that "None" may have been stored as a string in the metadata database.