public static ItemStack[] deserializeItemstacks(JsonElement data) {
        Preconditions.checkArgument(data.isJsonPrimitive());
        return InventorySerialization.decodeItemStacks(data.getAsString());
    }
Utility methods for converting ItemStacks and Inventories to and from JSON.
helper/src/main/java/me/lucko/helper/serialize/Serializers.java