I found the solution thanks to this post here :
For my particular case use, I decided to use the key as the name of the object and put inside the value the amount of that object and also its ID number as I need it for other things.
Works fine now.
I found the solution thanks to this post here :
For my particular case use, I decided to use the key as the name of the object and put inside the value the amount of that object and also its ID number as I need it for other things.
Works fine now.