Parsing Role Options

/category-advanced parse-options-http

base-link: Link to the raw JSON or API that returns a valid JSON. If there are several pages, provide a link without a page number at the end.

array-name: The name of the array if it's an object, or [] if it's just an array.

option-name-key: An element key of role name.

option-id-key: An element key of role ID (don't specify if you're using role-determination option).

option-additional-key: An element key of the additional info to display as option's description.

Example Object

Command options in this example:

array-name: roles

option-name-key: name

option-id-key: id

roles.json
{
    "roles": [
        { "name": "Test Role 1", "id": "1092819232623964220" },
        { "name": "Test Role 2", "id": "1093119385926897696" },
        { "name": "Test Role 3", "id": "1092826062720872558" }
    ],
    "page": 1
}

Example Array

Command options in this example:

array-name: []

option-name-key: roleName

option-additional-key: info

roles.json
[
    { "roleName": "Test Role 1", "info": "Role Description 1" },
    { "roleName": "Test Role 2", "info": "Role Description 2" },
    { "roleName": "Test Role 3", "info": "Role Description 3" }
]

After a successful update of the category, provided parsing settings will be assigned to this category. Synchronize context-menu command will update the options using the saved settings.

Synchronization on Request (API)

Once you've assigned parsing settings within a category, you can use synchronization via the API or using the context menu.

Last updated