During creating a saving-loading system in which JSON is involved, I ran into an error, which was when transmitting special values like Vector3, CFrame, and Color3s into the encoder, I noticed they’d come out as nil after being decoded. How can I fix this issue?
I ran this in the command bar to test my theory, this isn’t the actual script, rather it was a rushed snippet of what I’m concerned with.
local http = game:GetService("HttpService")
local v = {['m']=Color3.new(0,0,0)}
local nv = http:JSONEncode(v)
print(tostring(http:JSONDecode(nv)['m']))