Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Looks like suriwire.lua could use dkjson:

local ok, json = pcall(require, "cjson")
if not ok then
    json = require("dkjson")
end

This project (ntop/nDPI/wireshark/tshark/lib/) has an example of using dkjson with a tshark Lua plugin.

tshark.lua:

local json = require "dkjson"

Looks like suriwire.lua could use dkjson:

local ok, json = pcall(require, "cjson")
if not ok then
    json = require("dkjson")
end

This project (ntop/nDPI/wireshark/tshark/lib/) includes dkjson.lua and has an example of using dkjson it with a tshark Lua plugin.

tshark.lua:

local json = require "dkjson"