How do i add a value to a table?

Hello developers!
So im working on a datasave script and im trying to save if certain items are equipped or not. Im not sure on how to save the items value, Here is a look at what i tried.

For some reason it thinks the value is a string when its a bool value.

	for i, v in pairs(player.ItemInventory:GetChildren()) do
		table.insert(data.Items, v.Name, v.Value)
	end	

You should save it as a table.

	for i, v in pairs(player.ItemInventory:GetChildren()) do
		table.insert(data.Items, {Name = v.Name, Value = v.Value})
	end

The problem is that table.insert() expects the second argument to be the location where you want to insert a value. If you are trying to set a value of a key in a dictionary. just do
data.Items[v.Name] = v.Value

Hope this helps!