@Grab(group='xom', module='xom', version='1.1') @Grab(group='net.sf.json-lib', module='json-lib', version='2.4', classifier='jdk15') import net.sf.json.groovy.* builder = new JsonGroovyBuilder() println builder.json { stores = [ [store_name:"Shibuya", area:"Tokyo"], [store_name:"Ikebukuro", area:"Tokyo"], [store_name:"Yokohama", area:"Kanagawa"] ] }
動作環境
groovy 1.8.2, JDK6 Update22, Json-lib 2.4
0 件のコメント:
コメントを投稿