load json module in a standard manner
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
dmc_lua
spec
.gitignore
LICENSE
README.md
Snakefile

README.md

Overview

This module is used to load any of the various Lua json modules, but standardize the name to json so that code is portable across platforms. Currently the file tries to load one of dkjson, cjson or json. (You can also edit the file to add your favorite json module)

Of course you will need to install a json module for it to work, eg:

-- some example json libs
> luarocks install dkjson
> luarocks install lua-cjson

Usage

local json = require 'dmc_lua.json'

If you setup your Lua PATH (preferred), it would be:

local json = require 'json'