Convert a composite bash string into json map

I have the following bash string

VAR="Minor:3.9,Full:3.9.10,Minor:3.8,Full:3.8.11,Minor:3.10,Full:3.10.11"

Is there a way (preferably through jq) to produce the following json object

json [ { "Minor":"3.9", "Full":"3.9.10" }, { "Minor":"3.8", "Full":"3.8.11" }, { "Minor":"3.10", "Full":"3.10.11" } ]

submitted by /u/pkaramol
[link] [comments]

from Software Development – methodologies, techniques, and tools. Covering Agile, RUP, Waterfall + more! https://ift.tt/Sq8XEfR

Leave a comment

Design a site like this with WordPress.com
Get started
search previous next tag category expand menu location phone mail time cart zoom edit close