GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - oploadk/json.lua: Lima's version of the JSON wheel.

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

54 Commits
54 Commits

Folders and files

NameName
Last commit message
Last commit date
LICENSE.txt
LICENSE.txt
 
 
README.md
README.md
 
 
json.lua
json.lua
 
 
json.test.lua
json.test.lua
 
 
lima-json-scm-1.rockspec
lima-json-scm-1.rockspec
 
 

Repository files navigation

json.lua

Presentation

This is Lima's version of the JSON wheel. It is a fork of rxi/json.lua.

Typically we only use the encoder with Lua 5.3. Consider other use cases unsupported (see Alternatives).

Dependencies

None except Lua 5.3.

Usage

> json = require "json"
> json.encode({foo = { bar = "baz", answer = 42 }})
{
  "foo":{
    "bar":"baz",
    "answer":42
  }
}
> json.encode({foo = { bar = "baz", answer = 42 }}, false) -- no pretty printing
{"foo":{"bar":"baz","answer":42}}

Alternatives

For a full-featured, pure Lua + LPeg JSON encoder / decoder, check out luajson.

Otherwise, there are plenty of options in LuaRocks.

License

This library is free software; you can redistribute it and/or modify it under the terms of the MIT license. See LICENSE.txt for details.

About

Lima's version of the JSON wheel.

Resources

Readme
MIT license
Activity
Custom properties

Stars

0 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.