Example usage for org.json.simple JSONAware toString

List of usage examples for org.json.simple JSONAware toString

Introduction

In this page you can find the example usage for org.json.simple JSONAware toString.

Prototype

public String toString() 

Source Link

Document

Returns a string representation of the object.

Usage

From source file:ru.runa.wfe.commons.web.JsonAjaxCommand.java

@Override
public void execute(User user, HttpServletRequest request, HttpServletResponse response) throws Exception {
    JSONAware json = execute(user, request);
    response.getOutputStream().write(json.toString().getBytes(Charsets.UTF_8));
}