let url = 'https://api.sheety.co/cf860fbdd9247ca699de90841564a900/testGsheetToApi/sheet1'; fetch(url) .then((response) => response.json()) .then(json => { // Do something with the data console.log(json.sheet1S); });

Show value :

{ "sheet1": [ { "enterValue": 13, "result": 18, "id": 2 } ] }

TEST 2:

DEBUG: Cache is NOT active
DEBUG: try to retieve this url: https://01st.info/wp-content/plugins/json-content-importer/json/gutenbergblockexample1.json
DEBUG: wp_remote_get to https://01st.info/wp-content/plugins/json-content-importer/json/gutenbergblockexample1.json
DEBUG: arguments: Array ( [timeout] => 5 )
DEBUG: success getting URL

DEBUG: 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):

DEBUG: basenode: level1
DEBUG: template:

DEBUG:
LEAVE function checkType // depth: 1 // result: Very good, this is the value of &#039;start&#039;, right out of the JSON-data<br />This is the first value of key in the &#039;level1&#039;-array <br /> id: 11111 <br /> This is the second value of key in the &#039;level1&#039;-array <br /> id: 222 <br /> This is the third value of key in the &#039;level1&#039;-array <br /> id: 33333333 <br /> This is the fourth value of key in the &#039;level1&#039;-array <br /> id: 4444 <br />
// returnHTMLinsideProc: This is the fourth value of key in the 'level1'-array
id: 4444


DEBUG: result:

Very good, this is the value of 'start', right out of the JSON-data
This is the first value of key in the 'level1'-array
id: 11111
This is the second value of key in the 'level1'-array
id: 222
This is the third value of key in the 'level1'-array
id: 33333333
This is the fourth value of key in the 'level1'-array
id: 4444

Author

zero1stinfo

en_USEnglish