| Author |
HowTo --> GroovyShell().evaluate("['item1', 'item2', 'item3']")
|
John Dee
Greenhorn
Joined: May 13, 2010
Posts: 3
|
|
Would someone happen to know how to take a List or Map defined as a String (i.e. read off an InputStream) and assign the contents of that string to a List/Map object.
Something like GroovyShell().evaluate("[name:'nameVale', phone:'phoneVal', zip:'zipVal']"), but this does not work. I get the following error message:
No signature of method: com....GroovyShell() is applicable for argument types: () values: []
Thanks!
|
 |
Craig Treptow
Greenhorn
Joined: Oct 29, 2007
Posts: 16
|
|
This looks helpful:
Stack Overflow - Best Way To Code This
|
 |
 |
|
|
subject: HowTo --> GroovyShell().evaluate("['item1', 'item2', 'item3']")
|
|
|