Converts JSON to the Groovy native format for data structures.
{ "foo" : "bar" } -> [ foo : 'bar' ]
Useful for pasting into an IDE or creating test data or whatever.
You must use gradle 2.1 or above.
To build:
gradle shadowJar
To run (reading from stdin):
java -jar build/libs/json2groovy-all.jar
Type/paste in some JSON and hit CTRL+D
For further usage, reading from a file etc. try:
java -jar build/libs/json2groovy-all.jar -h