Skip to content

dvv/luvit-cjson

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JSON for Luvit

Build Status

N.B.

Luvit has now native json module based on yajl.

Usage

// import module
local JSON = require('cjson')

// simple encode/decode loop
local obj, serialized, content
obj = { 1, 2, 3, 4 }
p(obj)
serialized = JSON.stringify(obj)
p(serialized)
content = JSON.parse(serialized)
p(content)
assert(obj[2] == content[2])

License

MIT

About

JSON for Luvit

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages