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:
Oliver Marks 2018-10-03 21:12:37 +01:00 committed by GitHub
parent 548ca39149
commit 0576be1d26
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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