Lua API

JSON5 module

Parse/stringify JSON5 format.

Usage

local JSON5 = ELONA.require("core.JSON5")

Functions

parse (source) Parses JSON5 text.
stringify () Stringify arbitary value as JSON5.

Functions

# parse (source)

Parses JSON5 text.

Parameters:
  • source : (string) JSON5 text
Returns:
  • (any) Parsed object
Or
  • (nil) If failed
  • (string) Error message
# stringify ()

Stringify arbitary value as JSON5.