The ` around the $ is because $ is a key, it is not meant to be a variable.
{
"id": "5f676886e1f92e36",
"type": "inject",
"z": "d5a279b1156d9af4",
"name": "",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "{\"ops:world-patent-data\":{\"$\":{\"xmlns\":\"http://www.epo.org/exchange\",\"xmlns:ops\":\"http://ops.epo.org\",\"xmlns:xlink\":\"http://www.w3.org/1999/xlink\"},\"exchange-documents\":[{\"exchange-document\":[{\"$\":{\"system\":\"ops.epo.org\",\"family-id\":\"19913584\",\"country\":\"EP\",\"doc-number\":\"1499465\",\"kind\":\"A2\"},\"bibliographic-data\":[{\"publication-reference\":[{\"document-id\":[{\"$\":{\"document-id-type\":\"docdb\"},\"country\":[\"EP\"],\"doc-number\":[\"1499465\"],\"kind\":[\"A2\"],\"date\":[\"20050126\"]},{\"$\":{\"document-id-type\":\"epodoc\"},\"doc-number\":[\"EP1499465\"],\"date\":[\"20050126\"]}]}],\"classification-ipc\":[{\"text\":[\"B23B29/02\"]}],\"classifications-ipcr\":[{\"classification-ipcr\":[{\"$\":{\"sequence\":\"1\"},\"text\":[\"B23B 29/ 02 A I \"]},{\"$\":{\"sequence\":\"2\"},\"text\":[\"F16F 7/ 00 A I \"]},{\"$\":{\"sequence\":\"3\"},\"text\":[\"F16F 7/ 108 A I \"]}]}],\"patent-classifications\":[{\"patent-classification\":[{\"$\":{\"sequence\":\"1\"},\"classification-scheme\":[{\"$\":{\"office\":\"EP\",\"scheme\":\"CPCI\"}}],\"section\":[\"B\"],\"class\":[\"23\"],\"subclass\":[\"B\"],\"main-group\":[\"29\"],\"subgroup\":[\"022\"],\"classification-value\":[\"I\"],\"generating-office\":[\"US\"]},{\"$\":{\"sequence\":\"2\"},\"classification-scheme\":[{\"$\":{\"office\":\"EP\",\"scheme\":\"CPCI\"}}],\"section\":[\"B\"],\"class\":[\"23\"],\"subclass\":[\"B\"],\"main-group\":[\"29\"],\"subgroup\":[\"022\"],\"classification-value\":[\"I\"],\"generating-office\":[\"EP\"]},{\"$\":{\"sequence\":\"3\"},\"classification-scheme\":[{\"$\":{\"office\":\"EP\",\"scheme\":\"CPCI\"}}],\"section\":[\"F\"],\"class\":[\"16\"],\"subclass\":[\"F\"],\"main-group\":[\"7\"],\"subgroup\":[\"108\"],\"classification-value\":[\"I\"],\"generating-office\":[\"US\"]},{\"$\":{\"sequence\":\"4\"},\"classification-scheme\":[{\"$\":{\"office\":\"EP\",\"scheme\":\"CPCI\"}}],\"section\":[\"F\"],\"class\":[\"16\"],\"subclass\":[\"F\"],\"main-group\":[\"7\"],\"subgroup\":[\"108\"],\"classification-value\":[\"I\"],\"generating-office\":[\"EP\"]}]}],\"application-reference\":[{\"$\":{\"doc-id\":\"16057428\"},\"document-id\":[{\"$\":{\"document-id-type\":\"docdb\"},\"country\":[\"EP\"],\"doc-number\":[\"03747542\"],\"kind\":[\"A\"]},{\"$\":{\"document-id-type\":\"epodoc\"},\"doc-number\":[\"EP20030747542\"],\"date\":[\"20030414\"]},{\"$\":{\"document-id-type\":\"original\"},\"doc-number\":[\"03747542\"]}]}],\"priority-claims\":[{\"priority-claim\":[{\"$\":{\"sequence\":\"1\",\"kind\":\"national\"},\"document-id\":[{\"$\":{\"document-id-type\":\"epodoc\"},\"doc-number\":[\"NO20020002077\"],\"date\":[\"20020430\"]},{\"$\":{\"document-id-type\":\"original\"},\"doc-number\":[\"20022077\"]}]},{\"$\":{\"sequence\":\"2\",\"kind\":\"national\"},\"document-id\":[{\"$\":{\"document-id-type\":\"epodoc\"},\"doc-number\":[\"WO2003NO00124\"],\"date\":[\"20030414\"]},{\"$\":{\"document-id-type\":\"original\"},\"doc-number\":[\"NO2003000124\"]}]}]}],\"parties\":[{\"applicants\":[{\"applicant\":[{\"$\":{\"sequence\":\"1\",\"data-format\":\"epodoc\"},\"applicant-name\":[{\"name\":[\"TEENESS ASA [NO]\"]}]},{\"$\":{\"sequence\":\"1\",\"data-format\":\"original\"},\"applicant-name\":[{\"name\":[\"TEENESS ASA\"]}]}]}],\"inventors\":[{\"inventor\":[{\"$\":{\"sequence\":\"1\",\"data-format\":\"epodoc\"},\"inventor-name\":[{\"name\":[\"DIGERNES ANDERS [NO]\"]}]},{\"$\":{\"sequence\":\"1\",\"data-format\":\"original\"},\"inventor-name\":[{\"name\":[\"DIGERNES, ANDERS\"]}]}]}]}],\"invention-title\":[{\"_\":\"DÄMPFUNGSVORRICHTUNG ZUR DÄMPFUNG VON SCHWINGUNGEN\",\"$\":{\"lang\":\"de\"}},{\"_\":\"APPAREIL AMORTISSEUR POUR AMORTIR DES VIBRATIONS\",\"$\":{\"lang\":\"fr\"}},{\"_\":\"DAMPING APPARATUS FOR THE DAMPING OF VIBRATIONS\",\"$\":{\"lang\":\"en\"}}]}]},{\"$\":{\"system\":\"ops.epo.org\",\"family-id\":\"19913584\",\"country\":\"EP\",\"doc-number\":\"1499465\",\"kind\":\"B1\"},\"bibliographic-data\":[{\"publication-reference\":[{\"document-id\":[{\"$\":{\"document-id-type\":\"docdb\"},\"country\":[\"EP\"],\"doc-number\":[\"1499465\"],\"kind\":[\"B1\"],\"date\":[\"20060830\"]},{\"$\":{\"document-id-type\":\"epodoc\"},\"doc-number\":[\"EP1499465\"],\"date\":[\"20060830\"]}]}],\"classifications-ipcr\":[{\"classification-ipcr\":[{\"$\":{\"sequence\":\"1\"},\"text\":[\"B23B 29/ 02 A I \"]},{\"$\":{\"sequence\":\"2\"},\"text\":[\"F16F 7/ 00 A I \"]},{\"$\":{\"sequence\":\"3\"},\"text\":[\"F16F 7/ 108 A I \"]}]}],\"patent-classifications\":[{\"patent-classification\":[{\"$\":{\"sequence\":\"1\"},\"classification-scheme\":[{\"$\":{\"office\":\"EP\",\"scheme\":\"CPCI\"}}],\"section\":[\"B\"],\"class\":[\"23\"],\"subclass\":[\"B\"],\"main-group\":[\"29\"],\"subgroup\":[\"022\"],\"classification-value\":[\"I\"],\"generating-office\":[\"US\"]},{\"$\":{\"sequence\":\"2\"},\"classification-scheme\":[{\"$\":{\"office\":\"EP\",\"scheme\":\"CPCI\"}}],\"section\":[\"B\"],\"class\":[\"23\"],\"subclass\":[\"B\"],\"main-group\":[\"29\"],\"subgroup\":[\"022\"],\"classification-value\":[\"I\"],\"generating-office\":[\"EP\"]},{\"$\":{\"sequence\":\"3\"},\"classification-scheme\":[{\"$\":{\"office\":\"EP\",\"scheme\":\"CPCI\"}}],\"section\":[\"F\"],\"class\":[\"16\"],\"subclass\":[\"F\"],\"main-group\":[\"7\"],\"subgroup\":[\"108\"],\"classification-value\":[\"I\"],\"generating-office\":[\"US\"]},{\"$\":{\"sequence\":\"4\"},\"classification-scheme\":[{\"$\":{\"office\":\"EP\",\"scheme\":\"CPCI\"}}],\"section\":[\"F\"],\"class\":[\"16\"],\"subclass\":[\"F\"],\"main-group\":[\"7\"],\"subgroup\":[\"108\"],\"classification-value\":[\"I\"],\"generating-office\":[\"EP\"]}]}],\"application-reference\":[{\"$\":{\"doc-id\":\"16057428\"},\"document-id\":[{\"$\":{\"document-id-type\":\"docdb\"},\"country\":[\"EP\"],\"doc-number\":[\"03747542\"],\"kind\":[\"A\"]},{\"$\":{\"document-id-type\":\"epodoc\"},\"doc-number\":[\"EP20030747542\"],\"date\":[\"20030414\"]},{\"$\":{\"document-id-type\":\"original\"},\"doc-number\":[\"03747542\"]}]}],\"priority-claims\":[{\"priority-claim\":[{\"$\":{\"sequence\":\"1\",\"kind\":\"national\"},\"document-id\":[{\"$\":{\"document-id-type\":\"epodoc\"},\"doc-number\":[\"NO20020002077\"],\"date\":[\"20020430\"]},{\"$\":{\"document-id-type\":\"original\"},\"doc-number\":[\"20022077\"]}]},{\"$\":{\"sequence\":\"2\",\"kind\":\"national\"},\"document-id\":[{\"$\":{\"document-id-type\":\"epodoc\"},\"doc-number\":[\"WO2003NO00124\"],\"date\":[\"20030414\"]},{\"$\":{\"document-id-type\":\"original\"},\"doc-number\":[\"NO2003000124\"]}]}]}],\"parties\":[{\"applicants\":[{\"applicant\":[{\"$\":{\"sequence\":\"1\",\"data-format\":\"epodoc\"},\"applicant-name\":[{\"name\":[\"TEENESS ASA [NO]\"]}]},{\"$\":{\"sequence\":\"1\",\"data-format\":\"original\"},\"applicant-name\":[{\"name\":[\"TEENESS ASA\"]}]}]}],\"inventors\":[{\"inventor\":[{\"$\":{\"sequence\":\"1\",\"data-format\":\"epodoc\"},\"inventor-name\":[{\"name\":[\"DIGERNES ANDERS [NO]\"]}]},{\"$\":{\"sequence\":\"1\",\"data-format\":\"original\"},\"inventor-name\":[{\"name\":[\"DIGERNES, ANDERS\"]}]}]}]}],\"invention-title\":[{\"_\":\"DÄMPFUNGSVORRICHTUNG ZUR DÄMPFUNG VON SCHWINGUNGEN\",\"$\":{\"lang\":\"de\"}},{\"_\":\"APPAREIL AMORTISSEUR POUR AMORTIR DES VIBRATIONS\",\"$\":{\"lang\":\"fr\"}},{\"_\":\"DAMPING APPARATUS FOR THE DAMPING OF VIBRATIONS\",\"$\":{\"lang\":\"en\"}}]}]}]}]}}",
"payloadType": "json",
"x": 370,
"y": 440,
"wires": [
[
"4f80779aeb75f948"
]
]
},
{
"id": "4f80779aeb75f948",
"type": "change",
"z": "d5a279b1156d9af4",
"name": "",
"rules": [
{
"t": "set",
"p": "payload.test",
"pt": "msg",
"to": "$zip(**.`exchange-document`[`$`.kind = \"B\"].`bibliographic-data`.`publication-reference`.`document-id`[`$`.`document-id-type`=\"docdb\"].\t$join([**.country, **.`doc-number`]), **.`exchange-document`.`bibliographic-data`.`publication-reference`.\t`document-id`.$zip(country,`doc-number`,kind, date),**.`family-id`)",
"tot": "jsonata"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 640,
"y": 460,
"wires": [
[
"461be6079dc1ad01"
]
]
},
{
"id": "461be6079dc1ad01",
"type": "debug",
"z": "d5a279b1156d9af4",
"name": "debug 86",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "false",
"statusVal": "",
"statusType": "auto",
"x": 880,
"y": 440,
"wires": []
}
] ```