i’ve seen some developers use HttpService:JSONEncode() function in datastores
like this:
local datastore = game:GetService("DataStoreService")
local pe = datastore:GetDataStore("data")
local success, err = pcall(function()
local data = game.HttpService:JSONEncode() -- player data
return pe:SetAsync(plr.UserId, data)
end)
end)
is there really any sense to use JSONEncode in datastores?