I have trouble accessing nested JSON with readJSON
oldJson string:
{"branch":{"type-0.2":{"version":"0.2","rc":"1","rel":"1","extras":"1"}}}
I try to access it as in example https://jenkins.io/doc/pipeline/steps/pipeline-utility-steps/#readjson-read-json-from-files-in-the-workspace
assert oldJson["rc"] == '1'
but it fails. I think it because "rc" is nested in "type-02". How could I access it?