๐Ÿ“ฆ membphis / luajit-jsonnet

Use the jsonnet with luajit which make it more easy.

โ˜… 2 stars โ‘‚ 0 forks ๐Ÿ‘ 2 watching โš–๏ธ BSD 2-Clause "Simplified" License
๐Ÿ“ฅ Clone https://github.com/membphis/luajit-jsonnet.git
HTTPS git clone https://github.com/membphis/luajit-jsonnet.git
SSH git clone git@github.com:membphis/luajit-jsonnet.git
CLI gh repo clone membphis/luajit-jsonnet
wangyuansheng wangyuansheng add jsonnet:evaluate_snippet a0c0868 10 years ago ๐Ÿ“ History
๐Ÿ“‚ master View all commits โ†’
๐Ÿ“ lib
๐Ÿ“„ data.json
๐Ÿ“„ LICENSE
๐Ÿ“„ README.md
๐Ÿ“„ test_example.lua
๐Ÿ“„ README.md

#luajit-jsonnet

use the jsonnet with luajit which make it more easy.

here is a example for parse the jsonnet file

local jsonnet=require"lib.jsonnet"
jsonnet = jsonnet.New()
for i=1,10 do
    local json, err = jsonnet:evaluate_file("data.json")
    print(json, " err:", err)
end
jsonnet.close()