... And back to the topic of parsing json in bash, it's pretty much impossible -- unless you use a tool like
jshon. Obviously a proper programming language like python will be easier to work with -- but if you really want to do it with bash you can.
I have used jshon before, for parsing calibredb's output.