You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
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.
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