ll.List2Json(JsonType: string, Values: list) : string
Converts either a strided list of key:value pairs to a JSON_OBJECT, or a list of values to a JSON_ARRAY.
ll.List2Json('test', {})
{
"def": "func",
"desc": "Converts either a strided list of key:value pairs to a JSON_OBJECT, or a list of values to a JSON_ARRAY.",
"energy": 10,
"sleep": 0,
"pure": true,
"link": "https://wiki.secondlife.com/wiki/LlList2Json",
"name": "List2Json",
"signatures": [
{
"result": [
{
"name": "",
"def": "result",
"desc": "",
"variadic": false,
"type": [
"string"
],
"optional": false
}
],
"args": [
{
"def": "arg",
"name": "JsonType",
"desc": "Type is JSON_ARRAY or JSON_OBJECT.",
"type": [
"string"
],
"variadic": false,
"optional": false
},
{
"def": "arg",
"name": "Values",
"desc": "List of values to convert.",
"type": [
"list"
],
"variadic": false,
"optional": false
}
]
}
]
}