LibParse

This project is abandoned and its default file will likely not work with the most recent version of World of Warcraft. Whether this project is out of date or its author has marked it as abandoned, this project is no longer maintained.

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.


Comments

  • To post a comment, please or register a new account.
Posts Quoted:
Reply
Clear All Quotes

About This Project

  • Project ID
    40412
  • Created
    Jun 4, 2012
  • Last Released File
    Aug 14, 2014
  • Total Downloads
    5,574
  • License

Categories

Members

Recent Files

  • Aug 14, 2014
  • r30
    Aug 14, 2014