private static JObject formPermissionHolder(PermissionHolder holder, List<Node> data) {
        return new JObject()
                .add("type", holder.getType().toString())
                .add("id", holder.getIdentifier().getName())
                .add("displayName", holder.getPlainDisplayName())
                .add("nodes", NodeJsonSerializer.serializeNodes(data));
    }
Generates a web editor request payload.

@param holders the holders to edit
@param tracks the tracks to edit
@param sender the sender who is creating the session
@param cmdLabel the command label used by LuckPerms
@param plugin the plugin
@return a payload
common/src/main/java/me/lucko/luckperms/common/webeditor/WebEditorRequest.java