Open brno32 opened 3 years ago
any updates on this? @brno32 could you tell me how did you solve it eventually? I'm facing this issue now, thinking to override find_or_create
method
I gave up on this library unfortunately. Overriding find_or_create
might be a good approach
Yes, I had a similar problem. I need a field that doesn't necessarily exist, and when I use $.list[*].key[0]
to match it only returns the found field instead of replacing its index with None
!
Is there a good solution?
given
$.[*].name
returnsbut I'd like for it to return
https://jsonpath.herokuapp.com/ let's you decide whether or not to return
null
in this case. Does such a flag exist here?EDIT:
I found the
find_or_create
method, which would put an emptydict
in the place ofNone
. Would it be possible to customize the created value?