← All addons

LibJson Library

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 repo...

Libraries json
Download 2.2.1
stable · 12 Oct 2020 · 3,114 downloads
Not rated yet

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.

Details
Status
Approved
Latest
2.2.1
Game version
1.4.8
Downloads
3,114
Original author
Johndon

2.2.1

stable
12 Oct 2020

Libstub version update

2.2.0

stable
11 Oct 2020

Removed sparse array checking. This allows most tables that come from the event api to be encoded easily.

2.1.0

stable
30 Sep 2020

Some support for wstring.

2.0.0

stable
30 Sep 2020

Only requires libstub instead of Ace

VersionChannelStatusPublishedSize
2.2.1 stable Published 12 Oct 2020 3 KB
2.2.0 stable Published 11 Oct 2020 3 KB
2.1.0 stable Published 30 Sep 2020 3 KB
2.0.0 stable Published 30 Sep 2020 3 KB
1.1.1 stable Published 29 Sep 2020 3 KB
LibJson

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

Folder LibJson · 2 files · by Johndon

No comments yet.

Log in to comment.

  • Original author: Johndon
Is this your addon?

If this is your addon you can claim it.

Log in to claim it.