Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用带有 Groovy 1.7 的 Grails 1.3.4,并且我正在尝试将 pogo 转换为 json。我见过的例子都不太适合我的场景。
class NameAndFields { String name String fields = [] }
我想将 NameAndFields 转换为 json。有人可以给我一个例子吗?我必须使用 JsonBuilder 吗?