#json turns table values into null null

3 messages · Page 1 of 1 (latest)

rough hornet
#
    Item_table = INV:GetChildren()
    
    print(Item_table) -- prints { [1] = Knife, [2] = Knife }
    
    local data = {
        Money = plr.stats.Money.Value,
        XP = plr.stats.XP.Value,
        LVL = plr.stats.LVL.Value,
        Items = http:JSONEncode(Item_table)
    }
    
    print(Item_table) -- prints { [1] = Knife, [2] = Knife }
    print(data.Items) -- prints [null,null]

why does this happen and how do i fix it?

fathom vector
rough hornet
#

oh it works now, thanks