Sort result of API call #22851
Replies: 2 comments
-
Sorry for the delay, you probably found the answer by now, but the sorting feature you mentioned sorts the keys according to their value, it does not sort by key name. Why is that required? The good about JSON is that you get the value specified by the key, you do not need to have that in a specific order. Beyond that, I'd try with JQ tool. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Inactive thread, please re-open if necessary |
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
-
I'm trying to retrive the fields cve, severity and name of an agent on that exact order. I put this on the API console:
GET /vulnerability/003?q=severity=Critical&select=cve,severity,name&sort=+cve,severity,name
but it returns it with the oposite order: name, severity and cve. Can I do something with the API call or should I just give it a format on the output?
Beta Was this translation helpful? Give feedback.
All reactions