def files = [:]
        return render (contentType: "text/json") {files [
            ["name": "picture1.jpg", "size": 902604, "url": "http://example.org/files/picture1.jpg",
                "thumbnailUrl": "http://example.org/files/thumbnail/picture1.jpg",
                "deleteUrl": "http://example.org/files/picture1.jpg",
                "deleteType": "DELETE"
            ]
            ,
            ["name": "picture2.jpg",
            "size": 841946,
            "url": "http://example.org/files/picture2.jpg",
            "thumbnailUrl": "http://example.org/files/thumbnail/picture2.jpg",
            "deleteUrl": "http://example.org/files/picture2.jpg",
            "deleteType": "DELETE"]
        ]}

Add a code snippet to your website: www.paste.org