Skip to content

Instantly share code, notes, and snippets.

View pieter-duplessis's full-sized avatar

Pieter du Plessis pieter-duplessis

  • Pretoria, South Africa
View GitHub Profile
@pieter-duplessis
pieter-duplessis / PrettyPrinter.groovy
Created April 22, 2020 05:26 — forked from esycat/PrettyPrinter.groovy
A simple way to pretty print nested lists and maps in Groovy.
import static groovy.json.JsonOutput.*
def config = ['test': 'lalala']
println prettyPrint(toJson(config))