LibParse

This project has become inactive.

This project is inactive and its default file will likely not work with the most recent version of World of Warcraft. The author may have abandoned it, or it may have outlived its usefulness.

This library will encode/decode common serialization formats. The first two formats being added are JSON and CSV. Other formats such as XML may be added later. I was surprised no such library already exists (as far as I could tell) as I plan on using JSON and CSV in one of my other addons so thought it'd be useful to put this in its own library.

The JSON functions are a modified version of a publicly available, MIT licensed Lua JSON library (http://www.chipmunkav.com/downloads/Json.lua).

CSV support was introduced with v1.0.


Library APIs:

lib:JSONEncode(o)
Encodes the passed lua table into a JSON string.

lib:JSONDecode(s)
Decodes the passed JSON string into a lua table.

lib:JSONNull()
Returns a reference to the table used to represent NULL.

lib:CSVEncode(keys, data)
Encodes the passed data as CSV with the passed keys.

lib:CSVDecode(str)
Decodes the passed CSV string into keys / data.

You must login to post a comment. Don't have an account? Register to get one!

  • 2 comments
  • Avatar of myrroddin myrroddin Jun 04, 2013 at 13:15 UTC - 0 likes

    Any chance of API documentation, please?

  • Avatar of Morsker Morsker Jul 20, 2012 at 15:38 UTC - 0 likes

    I was also surprised not to see JSON libraries; I ended up using this one when I was trying to export our gbank to a spreadsheet:

    http://json.luaforge.net/
    ... or here for just the code.

    I don't know how it compares to the library you found, but I thought it was worth mentioning.

  • 2 comments

Table of contents

  1. 1 Library APIs:

Facts

Date created
Jun 05, 2012
Categories
Last update
Aug 15, 2014
Development stage
Inactive
Language
  • enUS
License
MIT License
Curse link
LibParse
Downloads
3,757
Recent files
  • R: v1.5 for 4.3.4 Aug 15, 2014
  • A: r30 for 4.3.4 Aug 15, 2014
  • A: r29 for 4.3.4 Aug 15, 2014
  • R: v1.4 for 4.3.4 Aug 15, 2014
  • A: r27 for 4.3.4 Aug 15, 2014

Authors

Relationships

Embedded library
LibStub