Groovy web console

subscribe to the feed Subscribe
to this
site

broken JSONPath

Published 1 month ago by Anonymous
Actions  ➤ Edit in console Back to console Show/hide line numbers View recent scripts
def jsonObj = {"eventKey":"a","date":"120","changes":[{"ref":{"id":"refs/tags/mytag","displayId":"MYTAG","type":"TAG"},"refId":"refs/tags/MYTAG"}]}

echo ${jsonObj.changes[0].ref.type}