default
{
state_entry()
{
string json_array = llList2Json(JSON_ARRAY, ["\"", "]"]);
string json_object = llList2Json(JSON_OBJECT,[
"string", "Hello, world!",
"json_array", json_array,
"double quote", "\""
]);
llSay(0, json_object);
string extracted_string = llJsonGetValue(json_object, ["string"]);
string extracted_array = llJsonGetValue(json_object, ["json_array"]);
llSay(0, "extracted_string:" + extracted_string); // Says "Hello, world!"
llSay(0, "extracted_array:" + extracted_array); // Empty string?
}
}
There seems to be an issue with the way llJsonGetValue extracts json arrays.
This minimal repro script gives an empty string for the extracted array, instead of the given array.
Note that the created json object seems fine, it just can't extract from it.