LibJSON-1.0

  • 2 pages found
NameAuthorLast updated byUpdated on
NameAuthorLast updated byUpdated on
API/ Apr 05, 2009
LibJSON-1.0 ckknight ckknight Apr 05, 2009
Main ckknight ckknight Nov 29, 2008
LibJSON-1.0 is a library to convert between Lua objects and serialized JSON objects This is mostly useful if you are exporting lua data to external applications. local LibJSON = LibStub("LibJSON-1.0") local myObject = { alpha = "Hello", bravo = {1234, 5678.9}, charlie = {delta = "echo"}, delta = LibJSON.Null() } local json = LibJSON.Serialize(myObject) assert(json == [=[{"alpha":"Hello","bravo":[1234,5678.9],"charlie":{"delta":"echo"},"delta":null}]=]) -- and deserializing local lua =...
  • 2 pages found