check components in recipe

Hi, i have a "custom item" and i would like to use it in a custom recipe, but how can i check the compoents of the item used in it ?

{
    "type": "minecraft:crafting_shaped",
    "category": "equipment",
    "pattern": [
        "#",
        "C"
    ],
    "key": {
        "#": {
            "item": "minecraft:ender_pearl"
        },
        "C": {
            "item": "minecraft:compass",
                "components": {
                "minecraft:item_name": "{\"text\":\"Checkpoint\"}"
            }
        }
    },
    "result": {
        "id": "minecraft:compass",
        "count": 1
    }
}
Continue to help post