Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated JSON to work with newer LPEG
- Loading branch information
1 parent
cdb4461
commit d95bb11
Showing
18 changed files
with
897 additions
and
271 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,24 @@ | ||
--[[ | ||
Licensed according to the included 'LICENSE' document | ||
Author: Thomas Harning Jr <harningt@gmail.com> | ||
--]] | ||
]] | ||
local decode = require("json.decode") | ||
local encode = require("json.encode") | ||
local util = require("json.util") | ||
|
||
module("json") | ||
_M.decode = decode | ||
_M.encode = encode | ||
_M.util = util | ||
local _G = _G | ||
|
||
local _ENV = nil | ||
|
||
local json = { | ||
_VERSION = "1.3.4", | ||
_DESCRIPTION = "LuaJSON : customizable JSON decoder/encoder", | ||
_COPYRIGHT = "Copyright (c) 2007-2014 Thomas Harning Jr. <harningt@gmail.com>", | ||
decode = decode, | ||
encode = encode, | ||
util = util | ||
} | ||
|
||
_G.json = json | ||
|
||
return json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.