File

teal-src/util/json.d.tl @ 11743:856dada099fa

net.server_epoll: Split, attempt to clarify dirty noise message Only relevant because a "dirty" connection (with incoming data in LuaSocket's buffer) does not count as "readable" according to epoll, so special care needs to be taken to keep on processing it.
author Kim Alvefur <zash@zash.se>
date Mon, 16 Aug 2021 20:15:38 +0200
parent 11460:a8b4e04bc044
line wrap: on
line source

local record lib
	encode : function (any) : string
	decode : function (string) : any, string

	enum json_type_name
		"null"
		"boolean"
		"object"
		"array"
		"number"
		"string"
		"integer"
	end

	type null_type = (nil)
	null : null_type
end
return lib