Example usage for org.json Json4Uws getJson

List of usage examples for org.json Json4Uws getJson

Introduction

In this page you can find the example usage for org.json Json4Uws getJson.

Prototype

public final static JSONObject getJson(final ErrorSummary error) throws JSONException 

Source Link

Document

Gets the JSON representation of the given error summary.

Usage

From source file:uws.job.serializer.JSONSerializer.java

@Override
public String getUWS(final UWS uws, final JobOwner user) throws JSONException {
    return Json4Uws.getJson(uws).toString();
}

From source file:uws.job.serializer.JSONSerializer.java

@Override
public String getErrorSummary(final ErrorSummary error, final boolean root) throws JSONException {
    return Json4Uws.getJson(error).toString();
}