A very naive question but is there a robust or better way to do following. Say it has nothing to do with json actually.
let say I have list (reading from file)
string_list = [ "foo",1,None, "null","[]","bar"]
Now, null and [] are essentially equivalent of null but different data structures have different interpretation of "None"?? right?
So rather than me writing a regex for all these rules.. is there a better way to convert "null","[]" etc to None.. ??
Thanks
nulland[]are both valid in JSON, and that things likelen([])works whilelen(None)does not, flattening all instances of empty lists toNonemight not be the best approach.