fbpx

Json Test


DEBUG: wp_remote_get to https://api.digitalmedia.hhs.gov/api/v2/resources/media/searchResults.json?q=mental
DEBUG: arguments: Array ( [timeout] => 5 )
DEBUG: success getting URL

If you use WordPress without Gutenberg, you can use this Shortcode (copy with Strg+A, paste to TEXT-editor!):

DEBUG:basenode:
DEBUG:template:

DEBUG:
LEAVE function checkType: // depth: 1 // result :<b>Empty template: Add some text!</b><br> For the example copypaste this to the right Template box:<br>start: &#123;start&#125;&lt;br&gt; &#123;subloop-array:level2:-1&#125; level2: &#123;level2.key&#125; &lt;br&gt;&#123;subloop:level2.data:-1&#125; id: &#123;level2.data.id&#125;, type: &#123;level2.data.type&#125;&lt;br&gt; &#123;/subloop:level2.data&#125; &#123;/subloop-array:level2&#125;
// noofItems:
// returnHTMLinsideProc:

DEBUG:result:

Empty template: Add some text!
For the example copypaste this to the right Template box:
start: {start}<br> {subloop-array:level2:-1} level2: {level2.key} <br>{subloop:level2.data:-1} id: {level2.data.id}, type: {level2.data.type}<br> {/subloop:level2.data} {/subloop-array:level2}
api-answer:
Inspect JSON: Copypaste (click in box, Strg-A marks all, then insert into clipboard) the JSON from the following box to https://jsoneditoronline.org):

template:

result:

Plugin-Settings (see Plugin options):
Cache: disabled
oauth Bearer Accesskey:
http-Header default Useragent:

the real result:
Empty template: Add some text!
For the example copypaste this to the right Template box:
start: {start}<br> {subloop-array:level2:-1} level2: {level2.key} <br>{subloop:level2.data:-1} id: {level2.data.id}, type: {level2.data.type}<br> {/subloop:level2.data} {/subloop-array:level2}