How to save a Dictionary with DataStore2

Hey, I’ve been looking for ways to save a Dictionary with DataStore2.
This is my Dictionary I’m trying to save:

	local CurrentIce = {
		[1] = {["IceName"] = "Frosted", ["Count"] = 0};
		[2] = {["IceName"] = "Cream", ["Count"] = 0};
	}

To save it I’m doing:

	local IceStore = DS("Ice", Player)
	IceStore :Set(CurrentIce)

To load it I’m doing:

if IceStore:Get() ~= nil then
			local CurrentIce = IceStore:Get()
end

I’m receiving this error:
image

Any ideas on fixing this?
Thanks in advanced!

I never used DataStore2 so I can hardly tell that, but I believe you should try encoding the dictionary as a string. You can do that using HTTPService’s JSONEncode and then save the data as a JSON string. When you GET the data you can decode it using JSONDecode.

Unsure if this will solve the issue but it’s the only thing I think of.

Note; I don’t think the error is caused by the DataStore saving attempt.