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 String key, final String value) throws JSONException 

Source Link

Document

Gets the JSON representation of the given pair key/value.

Usage

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

@Override
public String getAdditionalParameter(final String paramName, final Object paramValue, final boolean root)
        throws JSONException {
    return Json4Uws.getJson(paramName, (paramValue == null) ? null : paramValue.toString()).toString();
}