diff --git a/manifest.json b/manifest.json index 2599eec..6c61fb2 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "id": "api-request", "name": "APIRequest", - "version": "1.4.2", + "version": "1.4.3", "minAppVersion": "0.15.0", "description": "Fetch data from APIs or other sources. Responses in JSON, MD or HTML directly in your notes.", "author": "rooyca", diff --git a/package.json b/package.json index 2f62ed5..1d6b4a5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "api-request", - "version": "1.4.2", + "version": "1.4.3", "description": "Fetch data from APIs or other sources. Responses in JSON, MD or HTML directly in your notes.", "main": "main.js", "scripts": { diff --git a/src/main.ts b/src/main.ts index 020b7d1..3a31ed6 100644 --- a/src/main.ts +++ b/src/main.ts @@ -337,6 +337,10 @@ export default class MainAPIR extends Plugin { } else { el.createEl("strong", { text: "Error: {..} used on non-array element" }); } + } else if (part === "{gk}") { + Object.keys(current).forEach((key) => { + traverse(key, idx + 1); + }); } else { const nextParts = part.split('&').map(p => p.trim()); if (nextParts.length > 1) {