Skip to content

json2groovy - convert JSON to the Groovy native format

License

Notifications You must be signed in to change notification settings

mauriceoc/json2groovy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

json2groovy

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.

Usage

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

About

json2groovy - convert JSON to the Groovy native format

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages