I have a script that requires an EXTREMELY long encoded table to be decoded, but for some reason when I use JSONDecode(), it just returns an empty table. It may be possible that the file is just too big, but I can't even measure its size because it's so big. Here is my code:
local animData=[[There is too much to fit in here, so just believe that the table is encoded correctly]] local decodedData=game:GetService("HttpService"):JSONDecode(animData) print(#decodedData) --returns the size of the table, which is 0. print(decodedData) --returns a table ID, therefore it is a valid table
I need any help I can get, as this is a client project due tonight and I have to have it done.
UPDATE: I tried to put the formatted string here, but ScriptingHelpers was kind enough to let me know that I can't post questions longer than 10,000 characters. Then I deleted half of it and got the same error. So it must be about 15,000 to 20,000 characters total.
2ND UPDATE: I condensed the table down to about a third of the size and it worked. Solved!