I've been hearing from some people that JSON is better, but I'd like to hear other people's opinions and maybe some advantages or disadvantages.
For example, should I use this code:
(mock-up)
local dss = game:GetService("DataStoreService")
local http = game:GetService("HttpService")
local store = dss:GetDataStore("whatever")
local data = http:JSONDecode(store)
--load data and do whatever
local encodedData = http:JSONEncode(newData)
store:SetAsync(tableOfData, encodedData)
(may not be correct as I did it loosely in the way another user did)
or the common way:
local dss = game:GetService("DataStoreService")
local store = dss:GetDataStore("whatever")
local data = store:GetAsync(tableOfData)
--load data
store:SetAsync(tableOfData, newData)

1 comment
Ah, that makes sense. Thanks a lot!