Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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'

About

load json module in a standard manner

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages