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 UWSJob job, final UWSUrl jobsListUrl, final boolean reference)
        throws JSONException 

Source Link

Document

Gets the JSON representation of the given job.

Usage

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

@Override
public String getJob(final UWSJob job, final boolean root) throws JSONException {
    return Json4Uws.getJson(job, null, false).toString();
}

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

@Override
public String getJobRef(final UWSJob job, final UWSUrl jobsListUrl) throws JSONException {
    return Json4Uws.getJson(job, jobsListUrl, true).toString();
}