Hello! I’m trying to get a square bracket for
So instead of “attachment”:{“field”… it does “attachment”:[{“field”… when using JSON encoded
Is there any way I can make the lua script encode it as a square bracket? Here is my format before encoded
local attach = {
['attachments'] = {
["title"] = "Test Documentation";
['text'] = "Test";
['field'] = (
{
["title"] = "Priority";
["value"] = "High";
["short"] = false;
}
)
};
}
Thanks for any help