-
What do you want to achieve?
I am trying to send a table of information from one script to another using a string variable (more specifically the Text attribute of a TextLabel, since I need the table for that).
To achieve this I turn the table into a JSON string and then I turn it back into a table. -
What is the issue?
The issue is that, when decoding, it returns me the parse error, despite the JSON being valid:
--HOW I CHANGE THE TEXT OF THE LABEL
item_description.Text = http_service:JSONEncode(decoration.Description)
-- FUNCTION RESPONSIBLE FOR RECEIVING INFORMATION
function get_text_info(text : string)
print(text)
local info = http_service:JSONDecode(text)
local text = ""
for _,nib in info do
text = text .. nib.Text
end
return text, info
end