Libjson

libjson
Edit

Please remember to keep info in regards to HOW an addon works, what it SHOULD do in the description and all temporary things(doesn't work now etc.) in the comments.

For addon developers to encode LUA data structures in json format or decode strings into LUA data structures.

Supports wstrings. So one should be able to encode GameData.Player.name, though please report unexpected results.

Example usage:

local json = LibStub("LibJson-1.0")
local d = {hello = "world"}
local d_json = json.encode(d)
local json_d = json.decode(d_json)

Message me on the RoR discord if you have issues.
Edit

Please remember to keep info in regards to HOW an addon works, what it SHOULD do in the description and all temporary things(doesn't work now etc.) in the comments.

Edit

Please remember to keep info in regards to HOW an addon works, what it SHOULD do in the description and all temporary things(doesn't work now etc.) in the comments.

VersionStatusChangesUploaderDownloads
2.2.1stableLibstub version updateJohndon781
2.2.0stableRemoved sparse array checking. This allows most tables that come from the event api to be encoded easily.Johndon154
2.1.0stableSome support for wstring.Johndon154
2.0.0stableOnly requires libstub instead of AceJohndon169
1.1.1alphaJohndon165
Download Latest
You need to be logged in to comment