fix: fix lpeg version detection
[luajson.git] / lua / json.lua
blob1030d5c2cfbb9e0bff6a3b54f4baeb4a883201ee
1 --[[
2 Licensed according to the included 'LICENSE' document
3 Author: Thomas Harning Jr <harningt@gmail.com>
4 ]]
5 local decode = require("json.decode")
6 local encode = require("json.encode")
7 local util = require("json.util")
9 local _G = _G
11 local _ENV = nil
13 local json = {
14 _VERSION = "1.3.5",
15 _DESCRIPTION = "LuaJSON : customizable JSON decoder/encoder",
16 _COPYRIGHT = "Copyright (c) 2007-2017 Thomas Harning Jr. <harningt@gmail.com>",
17 decode = decode,
18 encode = encode,
19 util = util
22 _G.json = json
24 return json