Example 2: Recreating the above request:
String method = "progressNotify"; List<Object> params = new Vector<Object>(); params.add("75%"); JSONRPC2Notification notification = new JSONRPC2Notification(method, params); System.out.println(notification);
The mapping between JSON and Java entities (as defined by the underlying JSON Smart library):
true|false <---> java.lang.Boolean number <---> java.lang.Number string <---> java.lang.String array <---> java.util.List object <---> java.util.Map null <---> null
The JSON-RPC 2.0 specification and user group forum can be found here. @author Vladimir Dzhuvinov
|
|