Hello everyone :wave: I am trying to use a `field_...
# help-connector-development
r
Hello everyone 👋 I am trying to use a
field_pointer
with DpathExtractor, but my data is nested inside a list like this:
Copy code
testdata = { 'data': [
                    {'actual_data': { 'lotsofdata' },
                    {'metadata': 2},
                    {'null': 3},
                ],
               }
If I set
field_pointer: ["data"]
it works fine but I actually only want the value of
"actual_data"
, which is inside a list. I've tried
field_pointer: ["data[0]", "actual_data"]
but it doesn't work, and it won't allow any string interpolation. Is there a way to retrieve data within a list with DpathExtractor? 😅 Thanks for your help 🙏
s
try
[data, 0, actual_data]
🙏 1
does that work?
though keep in mind this will only work if you have one element in the array
r
yay it worked! thanks a lot 😄