GenericInventory: Change to deserialization method.

Thanks to @baidusteambot for the Json Template!