Replies: 1 comment
-
problem solved although i still don't know why. I just edit the context: $.entries[*].API in an editor like notepad and copy paste to the Field, then it's working, if i type it directly into the Field, then it's always show no data. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I'm new with Grafana and JSON API, and encounter with an issue really strange, I don't know if I did something wrong, please help...
the data source i used for testing is: https://api.publicapis.org/entries
looks like following:
{
"count": 1425,
"entries": [
{
"API": "AdoptAPet",
"Description": "Resource to help get pets adopted",
"Auth": "apiKey",
"HTTPS": true,
"Cors": "yes",
"Link": "https://www.adoptapet.com/public/apis/pet_list.html",
"Category": "Animals"
},
...
]
}
I can get the count value without any problem use following JSONPath
$.count
But when i try to show the entries data in a table, then it's always display no data, the JSONPath i wrote is following:
$.entries[*].API
If i use $.entries[*] then i can get following data
{"API":"AdoptAPet","Description":"Resource to help get pets adopted","Auth":"apiKey","HTTPS":true,"Cors":"yes","Link":"https://www.adoptapet.com/public/apis/pet_list.html","Category":"Animals"}
{"API":"Axolotl","Description":"Collection of axolotl pictures and facts","Auth":"","HTTPS":true,"Cors":"no","Link":"https://theaxolotlapi.netlify.app/","Category":"Animals"}
{"API":"Cat Facts","Description":"Daily cat facts","Auth":"","HTTPS":true,"Cors":"no","Link":"https://alexwohlbruck.github.io/cat-facts/","Category":"Animals"}
...
the question is: why $.entries[*].API is not working?
Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions