LibJSON-1.0

  • 2 pages found
NameAuthorLast updated byUpdated on
NameAuthorLast updated byUpdated on
Main ckknight ckknight 29 Nov 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 =...
API/ 05 Apr 2009
LibJSON-1.0 ckknight ckknight 05 Apr 2009
  • 2 pages found