- Issue was unassigned.
- Status changed to Needs review
10 months ago 12:08am 5 March 2024 - 🇵🇪Peru marvil07
It will be nice to have a way to walk through a set of items nested in all the item selector items.
I have started one custom data parser plugin that does that.
It basically extends the json data parser plugin, and then uses a given selector to unify its values across all the elements.E.g. the following the original example, the following source configuration bits will extract the four items.
data_parser_plugin: json_subitem item_selector: Centers subitem_selector: Sets
On the ideal world, jq pipelines can do the work once, but if the source endpoints cannot be changed, something like this data parser helps to produce a set that is sensible to walk.
New commits on new
3087614-json-subitems
topic branch and related new MR !87.- 3f81967 #3239180: Start a JSON subitems data parser
- Status changed to RTBC
4 months ago 9:03am 9 August 2024 - First commit to issue fork.
- 🇺🇸United States slbrassard
The parser was not working when using a pager because getSourceData always assumed we wanted the subitems. I added a check for the item selector parameter being the data item selector before getting subitems. I also removed the getSourceData function return type since it could be anything as with the parent function.
-
heddn →
committed cf3c774d on 6.0.x authored by
marvil07 →
Issue #3087614 by heddn, marvil07: Parsing JSON - arrays
-
heddn →
committed cf3c774d on 6.0.x authored by
marvil07 →
Automatically closed - issue fixed for 2 weeks with no activity.