• World of Warcraft Addons
  • World of Warcraft
  • Average Rating:

  • Your Rating

  • Share
  • Report Abuse

LibJSON-1.0

 
Project Updated:
Files Updated: Sat, Nov 29 2008
Supports Game Version: 3.0.3
Category: Libraries
Tags:

[Edit Tags]

Project Manager: ckknight
Additional Authors: No additional authors
Current Version: v1
License: MIT License
Development Site: CurseForge
Avg Daily DL (last 30 days): 0
Downloads Total: 360
Favorites: 0
Comments: 0
  • About LibJSON-1.0
  •  

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 = LibJSON.Deserialize([=[{
    "alpha": "Hello",
    "bravo": [1234, 5678],
    "charlie": {"delta": "echo"},
    "delta": null
}]=])
assert(lua.charlie.delta == "echo")
assert(lua.bravo[2] == 5678.9)

UTF-8 strings up to U+FFFF are fully supported.

  • Downloads (1)
  •  
File Name Release Type Game Version Downloads Date
Addon Curse.com Beta 2.3.3 0 9/29/2008
  File Name Release Type Game Version Downloads Date  
  LibJSON-1.0 v1 Release 3.0.3 360 11/29/2008
  • 1 page(s)
  • Comments

Add Comment  

Add

You need to login or register to post.

Benefits of Registration

  • Interact with hundreds of thousands of other gamers on an open social network.
  • Post your stories, news, images, videos, and other content to share.
  • Create a network with your fellow gamers or join an existing one.
  • Gain reputation for everything you do.
  • Addon Packs Containing LibJSON-1.0

Most Downloads / Day

LibJSON-1.0 has not been added to any Addon Packs yet.

  • Similar Addons
  •  

Average downloads per day

  1. 487 Ace3 Libraries
  2. 437 Addon Control Panel Libraries, Development Tools...
  3. 268 Ace2 Libraries
  4. 240 LibBabble-Boss-3.0 Libraries
  5. 207 LibRock-1.0 Libraries