APISonar


com.baasbox.util.JSONFormats.Formats.JSON

> com > baasbox > util > JSONFormats > Formats > JSON
com APIs baasbox APIs util APIs JSONFormats APIs Formats APIs JSON APIs

Example 1
public static Result get(String name){
        if (BaasBoxLogger.isTraceEnabled()) BaasBoxLogger.trace("Method Start");
        Result result = null;
        ODocument script = ScriptingService.get(name);
        if (script != null){
            result = ok(JSONFormats.prepareResponseToJson(script, JSONFormats.Formats.JSON));
        } else {
            result = notFound("Script: "+name+ " not found");
        }
        if (BaasBoxLogger.isTraceEnabled()) BaasBoxLogger.trace("Method End");
        return result;
    }