Template:Needs Translation/ 
| 函数名 | 
| Function: string llList2Json( string type, list values ); | 
| 参数: string	type
list	values
 | 
| 返回值: 返回一个字符串,该字符串或者被序列化为 json 类型,或者如果遇到了 json _ invalid 错误。
 | 
| 注意事项 | 
| 注意,字符串值项被解释为 json,而不是 lsl 字符串。如果需要,必须明确地添加引号。例如,lljson2list (lllist2json (json _ array,[“ bacon” ,“ true” ,“ false” ,“ null”])返回 lsl list [“ bacon” ,“ json _ true,json _ false,json _ null ] ,而 lljson2list (lllist2json (json _ array,”“ bacon” ,”” true” ,” false” ,” null”)返回 lsl list [“ bacon” ,” true” ,” false” ,” null”] | 
| 示例 | 
| 示例一 string CSV2Json(string csv)
{
    list li = llCSV2List(csv);
    return llList2Json(JSON_ARRAY, li);
}
// This function converts a comma separated values string to a Json array string. 
// CSV strings are often used for link-messages, notecards and they are easier to type as input commands. 
// A Json-Array can store multiple of those as a nested list within the same Json-string via JSON_APPEND
 |