Showing results for 
Show  only  | Search instead for 
Did you mean: 

is it possible to search and parse an specific Json List position ?

DynaMight Guru
DynaMight Guru

Let me try to explain what I need.

I am extracting data using Bizevents, and one of the fields I need is a list inside a Json in response Body.

I know that I can parse the json to extract the specific position of that list, like "List.0.0.Key" to get the first Key value at the first List position, but the List I have is not constant. I may have data in the position 3 but none in the firsts positions, and at each position, I may have a serie of different number of values.






Since the size of the list is not known, I can not simply create a series of extractions, and I will end up crazy with too many fields.

What I need to know is, Is it possible to search for a specific string in this list, and it return me the position of it in the list? Like, search for "valueB5.1" and it return me it is in "List.5.1.keyB5.1"?


Site Reliability Engineer @ Kyndryl

DynaMight Guru
DynaMight Guru

Hi @dannemca 

Analyzing your need, I don't know if this can be done with DQL, because due to the list structure, which is irregular and contains nested lists and dictionaries, it may be difficult to directly search this data using DQL. DQL is more focused on metrics and performance than processing complex data structures. You may need to use an external script, e.g., in Python, and send this data through an API.

You can still ask support. Maybe they will help.


Have a nice day!

Featured Posts