Fix JSON handling
The JSON library we used does not follow the spec in case of chars 0-31. I patched it to hopefully do this, so weird edge cases ought to be handled properly. Most of them. Lua strings are weird.
This commit is contained in:
parent
548ca39149
commit
0576be1d26
|
@ -1,5 +1,5 @@
|
|||
-- download JSON library
|
||||
local a=http.get"https://pastebin.com/raw/4nRg9CHU"local b=fs.open("json","w")b.write(a.readAll())a.close()b.close()
|
||||
local a=http.get"https://pastebin.com/raw/djyFBXR3"local b=fs.open("json","w")b.write(a.readAll())a.close()b.close()
|
||||
|
||||
os.loadAPI "json" -- whyyyyyy
|
||||
|
||||
|
|
Loading…
Reference in New Issue