mirror of
https://github.com/nmap/nmap.git
synced 2025-12-12 10:49:02 +00:00
Enable NSEDoc for json.generate; this should be a public function.
This commit is contained in:
@@ -76,7 +76,7 @@ local function escape(str)
|
|||||||
return "\"" .. string.gsub(str, ".", ESCAPE_TABLE) .. "\""
|
return "\"" .. string.gsub(str, ".", ESCAPE_TABLE) .. "\""
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Creates json data from an object
|
--- Creates json data from an object
|
||||||
--@param object a table containing data
|
--@param object a table containing data
|
||||||
--@return a string containing valid json
|
--@return a string containing valid json
|
||||||
function generate(obj)
|
function generate(obj)
|
||||||
|
|||||||
Reference in New Issue
Block a user