ll.List2Json (JsonType: string, Values: list) -> stringConverts 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,
"must_use": true,
"link": "https://wiki.secondlife.com/wiki/LlList2Json",
"private": false,
"takesSelf": false,
"name": "List2Json",
"signatures": [
{
"def": "signature",
"result": [
{
"name": "",
"def": "result",
"desc": "",
"variadic": false,
"type": [
{
"def": "simple",
"value": "string"
}
],
"optional": false
}
],
"args": [
{
"def": "arg",
"name": "JsonType",
"desc": "Type is JSON_ARRAY or JSON_OBJECT.",
"type": [
{
"def": "simple",
"value": "string"
}
],
"variadic": false,
"optional": false
},
{
"def": "arg",
"name": "Values",
"desc": "List of values to convert.",
"type": [
{
"def": "simple",
"value": "list"
}
],
"variadic": false,
"optional": false
}
]
}
]
}