|
|
|
|
|
by latch
3504 days ago
|
|
Not a python developer so I was surprised when the built-in json library has a flag allow_nan which is True by default. Also, not invalid, but surprising / annoying (a while to debug). An empty lua table is the same as an empty lua array: {}. This causes ambiguity. // will print {}
print(cjson.encode(cjson.decode('[]')))
|
|