I got the grails output as json which looks like following output
{"code":0,"message":"SUCCESS","packet":{"id":"1","name":"unit1"}}
here, i want packet values to be placed in square bracket like following code
{"code":0,"message":"SUCCESS","packet":[{"id":"1","name":"unit1"}]}
what should i do to get the packets in square bracket