I have JSON that looks like this:
[
{
\"fields\": {
\"versions\": [
{
\"id\": \"36143\",
\"na
This should work. You wouldn't want to use a group_by here, you would do that if you were trying to go from more to less, we're going the other way.
You're combining the different versions with the corresponding severity. Here's how you could do that.
map(.fields | (.versions[] | { id, name }) + { value: .severity.value })