Groovy
You're viewing a free preview. Sign in free to read every script.
Why this exists Almost every tool a DevOps engineer talks to (Jenkins, GitHub, cloud APIs, Kubernetes) speaks JSON. Groovy ships with JSON support built in, and because parsed JSON becomes ordinary maps and lists, the…
Parse and Build JSON in Groovy
Read a JSON document with JsonSlurper, walk it like a normal map, change a value, and write it back out pretty-printed with JsonOutput — plus the Jenkins-specific serialization trap to avoid.
Sign in free to read this script, along with the rest of the library.
Sign in free