serialize Inventory
Serialize an Inventory to a JSON string.
Return
the serialized JSON string
Parameters
inventory
the Inventory to be serialized
Serialize an Inventory to a JSON string.
Return
the serialized JSON string
Parameters
size
size of the Inventory
items
the ItemStacks in the Inventory