I am having a problem that just came out of nowhere, HttpsService:JSONDecode is not parsing the passed raw JSON string I passed.
Here is my code:
local chars = playerData:FindFirstChild(plr.Name).Characters -- Fetch stringValue containing raw json of some of the Player's data
local parsedData = http:JSONDecode(chars.Value) -- try parse the json
What was returned:
local returned = "{\"chars\":[\"Rare Brick\",\"Uncommon Brick\"]}" -- Not a lua table
What is expected:
local returned = {
chars = {
"Rare Brick",
"Uncommon Brick"
}
}
I do not know why this is happening and if you need any more information please reply and i’ll give you the information.