• 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: 339
Favorites: 1
Comments: 0
  • Curse Giveaways
  • Alganon

    Alganon

    Alganon Open Beta Key Giveaway Alganon is an upcoming fantasy-based MMORPG that allows thousands of people to play together in a virtual world that features a rich history dominated by commanding deities...

    Get Key

  • Contests
  • 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 339 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.
  • Similar Addons
  •  

Average downloads per day

  1. 1,811 Addon Control Panel Libraries, Development Tools...
  2. 1,005 Ace3 Libraries
  3. 664 LibRock-1.0 Libraries
  4. 484 LibHealComm-4.0 Libraries
  5. 465 Ace2 Libraries