I struggle finding the right data within objects I receive
Can I logger.info whatever is in
changelog (type: java.util.Map) or any other JSON object I receive?
The guessing is a source of frustration really.
If there is a better place that documents that please share.
Thanks!
map method inspect() does the trick!
if you struggle to find what's in a map (changelog for example)
logger.info (changelog.inspect()) will give you something like
['id':'10092', 'items':[['field':'priority', 'fieldtype':'jira', 'fieldId':'priority', 'from':'1', 'fromString':'Highest', 'to':'4', 'toString':'Low']]]
Just replace with whatever map you need to print out
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.