Vurv78 / qjson.lua

Tiny, quick JSON library for lua.
MIT License
7 stars 0 forks source link

Add `null` encode case. #3

Open Vurv78 opened 1 year ago

Vurv78 commented 1 year ago

Since qjson.NULL exists now, you should be able to do this:

local json = require "qjson"

json.encode {
    xyz = json.NULL
}

and get

{"xyz":null}