Hi,

the following works:

   def builder = new JsonBuilder()
   builder {
        HEADER {
            field 'value'
        }
   }


But the following gives me a compile error:

   def builder = new JsonBuilder()
   builder {
        HEADER {
            FIELD 'value'
        }
   }


"Groovyc: unexpected token: value"

Why is that? groovy 2.4.4 btw.

Maarten


Reply via email to