Content:MirLua/Examples/json

From Miranda NG
Jump to: navigation, search

local json = require('m_json') local value = json.Decode('[ true, { "foo": "bar" } ]') print(

   json.Encode(nil),
   json.Encode(true),
   json.Encode(123),
   json.Encode(3.21),
   json.Encode('test'),
   json.Encode({ true, { foo = "bar" } }),
   json.Encode(value))