Skip to content

Instantly share code, notes, and snippets.

View blaisedias's full-sized avatar

Blaise Dias blaisedias

View GitHub Profile
@tylerneylon
tylerneylon / json.lua
Last active August 24, 2024 14:01
Pure Lua json library.
--[[ json.lua
A compact pure-Lua JSON library.
The main functions are: json.stringify, json.parse.
## json.stringify:
This expects the following to be true of any tables being encoded:
* They only have string or number keys. Number keys must be represented as
strings in json; this is part of the json spec.