Javascript Escape Notation Decode To UTF-8 Bytes
C Shell Lua Makefile
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.
.travis
lib/resty
.gitignore
.travis.yml
LICENSE
Makefile
README.md
dist.ini
jsdecode.c
test.c
test.lua

README.md

lua-resty-jsdecode

Javascript Escape Notation Decode To UTF-8 Bytes with the Luajit ffi binding

Table of Contents

Status

Build Status

Production Ready

Compile

make;

Usage

Make sure jsdecode.lua and libjsdecode.so is in the package.cpath and package.path

local jsdecoder = jsdecode.new()

jsdecoder.decode("\\u0062\\u006f\\u006f\\u006d") #boom

Todo

  • Latin-1 character
  • Control escape sequences

Contributing

To contribute to lua-resty-jsdecode, clone this repo locally and commit your code on a separate branch.

PS: PR Welcome 🚀 🚀 🚀 🚀

Author

GitHub @detailyang

License

lua-resty-jsdecode is licensed under the MIT license.