Example 2: Recreating the above request:
String method = "makePayment"; Map<String,Object> params = new HashMap<String,Object>(); params.put("recipient", "Penny Adams"); params.put("amount", 175.05); String id = "0001"; JSONRPC2Request req = new JSONRPC2Request(method, params, id); System.out.println(req);
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
|
|