Trello Application System 'cannot convert to json' fix?
Asked by
8 years ago Edited 8 years ago
1 | local musget = http:PostAsync(trello api request http:JSONEncode( { [ "name" ] = (plr.Name .. " | " .. plr.userId), [ "desc" ] = data, [ "due" ] = nil , [ "idList" ] = boardid, [ "urlSource" ] = nil } )) |
The 'data' variable is all the questions combined in a variable. The thing is, the error says 'cannot convert to to json' when trying to jsonencode
. IF i change desc to lol, it sends the card to trello perfectly with the description 'lol'. I found a post on this made in 2015 on the roblox scripting forums, but there was no fix.
EDIT: Heres the code that makes data.
2 | for i = 1 , #module.Questions do |
4 | ".. script.Parent.p3.ScrollingFrame[" q "..i].TextLabel.Text .. " : ".. script.Parent.p3.ScrollingFrame[" q"..i ] .TextBox.Text |
Printing data works as intended: prints the questions and answers to questions.