Skip to content

toJson()

SadeceNicat edited this page Dec 25, 2024 · 3 revisions

toJson()

Syntax


toJSON(array/table value)

Converts array/table to a JSON file (returns JSON).

Example


local table = {"apple","orange","banana"}`
local json = toJson(table)    
           
-- returns "["apple","orange","banana"]"

Clone this wiki locally