{
“type”: “versionn”,
“versions”: [
{
“major”: “1.0”,
“minor”: [
“1.0.1”,
“1.0.2”
]
},
{
“major”: “1.1”,
“minor”: [
“1.1.1”,
“1.1.2”
]
},
{
“major”: “1.2”,
“minor”: []
}
]
}
how to get only majors from above. output as below
[“1.0”,“1.1”,“1.2”]
and how to get max minor version from above doc. output as
[“1.1.2”]