A fast and flexible JSON parser and encoder for Lua, built with LPeg for high performance and configurable parsing.
LuaJSON is a JSON parser and encoder for Lua that uses LPeg for high-performance parsing and flexible configuration. It allows developers to convert between JSON strings and Lua tables while preserving data types like null and undefined through configurable options. The library supports multiple Lua versions and provides utilities for handling arrays, objects, and structured data.
Lua developers who need efficient JSON parsing and encoding in their applications, especially those working with data interchange, APIs, or configuration files.
Developers choose LuaJSON for its speed due to LPeg integration, flexibility in parsing options, and broad compatibility across Lua versions and implementations like LuaJIT.
JSON parser/encoder for Lua Parses JSON using LPEG for speed and flexibility. Depending on parser/encoder options, various values are preserved as best as possible.
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Uses LPeg for fast and flexible parsing, allowing customizable rule-sets that enhance efficiency and adaptability in handling JSON data.
Supports Lua 5.1, 5.2, 5.3, and LuaJIT versions, ensuring it works across multiple Lua implementations for diverse projects.
Provides options to preserve null and undefined values via json.util.null and undefined, and allows strict JSON parsing for accuracy.
Includes helpers like IsArray, clone, and merge for managing tables and structured data, simplifying common JSON-related tasks.
Requires LPeg to be installed separately, adding setup complexity and potential compatibility issues in environments where LPeg is unavailable or outdated.
The README offers only a basic module overview with no detailed examples or tutorials, making it harder for new users to implement advanced features.
Focuses on parsing and encoding without built-in robust error validation or recovery mechanisms, which could lead to issues in production with malformed JSON.