Module sv_json

JSON Utility

Functions

ToString (data, indent) ToString function.
ConvertToSafe (data) ConvertToSafe function.


Functions

ToString (data, indent)
ToString function. This function converts a table to a JSON string.

Parameters:

  • data The table to convert. table
  • indent The indent. boolean

Returns:

    string

Usage:

    local str = exports.jones_util:ToString(tbl)
ConvertToSafe (data)
ConvertToSafe function. This function converts a table to a safe table.

Parameters:

  • data The table to convert. table

Returns:

    table

Usage:

    local safeData = exports.jones_util:ConvertToSafe(tbl)
generated by LDoc 1.5.0 Last updated 2024-05-13 19:05:24