Controller method returning JSON

Posted on by Kim

    def search(String selectVal) {
        def responseData = [
                results: AMApplication.findAllByName(selectVal)?.server?.name
        ]
        render responseData as JSON
    }


0 Responses to "Controller method returning JSON":