Skip to content

llList2Json

function ll.List2Json(JsonType: string, Values: {any}): string

Converts either a strided list of key:value pairs to a JSON_OBJECT, or a list of values to a JSON_ARRAY.

Parameters
JsonType (string)
Type is JSON_ARRAY or JSON_OBJECT.
Values ({any})
List of values to convert.

Add example usage here showing SLua/Luau syntax with ll.List2Json().

Add additional notes, caveats, or tips specific to using this function in SLua/Luau.