Forum Discussion

aaronpliu's avatar
aaronpliu
Frequent Contributor
7 years ago

Convert a flat JSON object to x-www-form-urlencoded

As captioned:   def jsonData = ''' { "name":"John", "age":30, "city":"New York" } ''' def slurper = new groovy.json.JsonSlurper().parseText(jsonData) def str = new StringBuilder() def iter = sl...