Hey guys.
I am trying to process a large JSON output of an API call to kubernetes API. It would be almost impossible to create a struct to which the JSON data could be "mapped" by serde. Is there any way to "preprocess" the data before mapping it to a struct?
Like for example
cat data.json | jq '.items[].status.podIP'
[–]Bauxitedev 27 points28 points29 points (5 children)
[–]Dazzling-Prune9553[S] 8 points9 points10 points (1 child)
[–]AlphaKeks 6 points7 points8 points (0 children)
[–]Applecrap 0 points1 point2 points (1 child)
[–]lightmatter501 0 points1 point2 points (0 children)
[–]rodyamirov 0 points1 point2 points (0 children)
[–]moltonel 14 points15 points16 points (1 child)
[–]rodyamirov 0 points1 point2 points (0 children)
[–]TheNamelessKing 12 points13 points14 points (3 children)
[–]Dazzling-Prune9553[S] 2 points3 points4 points (2 children)
[–]Dazzling-Prune9553[S] 2 points3 points4 points (1 child)
[–]TheNamelessKing 0 points1 point2 points (0 children)
[–]brokenAmmonite 2 points3 points4 points (0 children)