@@ -0,0 +1,803 @@
+package toolbox;%0A%0A/**%0A * Standardized JSON response. Use this class to construct a JSON response to a%0A * client.%0A * @author Glenn%0A *%0A */%0Apublic class JSONResponse%0A%7B%0A    /**%0A     * Indicate whether or not the requested operation has succeeded%0A     */%0A    public boolean success;%0A    /**%0A     * If the operation failed, this any error messages should be contained%0A     * here. %0A     */%0A    public String error;%0A    /**%0A     * Data the operation returns, if any%0A     */%0A    public Object data;%0A%0A    public JSONResponse(boolean success, String error, Object data)%0A    %7B%0A        super();%0A        this.success = success;%0A        this.error = error;%0A        this.data = data;%0A    %7D%0A%0A    public JSONResponse(String error)%0A    %7B%0A        super();%0A        this.success = false;%0A        this.error = error;%0A    %7D%0A%7D%0A

Add structured JSONResponse