| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
A lightweight JSON library for Lua
The json.lua file should be dropped into an existing project and required by it:
json = require "json"The library provides the following functions:
Returns a string representing value encoded in JSON.
json.encode({ 1, 2, 3, { x = 10 } }) -- Returns '[1,2,3,{"x":10}]'Returns a value representing the decoded JSON string.
json.decode('[1,2,3,{"x":10}]') -- Returns { 1, 2, 3, { x = 10 } }This library is free software; you can redistribute it and/or modify it under the terms of the MIT license. See LICENSE for details.
| Back | FazBrowse Home | New Git URL |