Category Archives: Groovy

Parse X509Certificate to JSON

Parsing a X509Certificate file into JSON object in string using groovy is demonstrated here. The helper class can be found below as

Posted in Groovy | Tagged , , | Leave a comment

Groovy Text File Pattern Substitution

I needed to substitute all the patterns “${any letter}” with some predefined replacement strings today, and the pattern could appear any times on the same line. This is the code snippet I came up in Groovy to complete the mission. … Continue reading

Posted in Groovy, Programming | Tagged , | Leave a comment