We don't want users to have the responsibility of parsing the returned RPC output, especially since the format may change over time. Instead, the RPC class should simply return a RpcResult which has an output field, and then this output can be fed into a high-level parser to retrieve information from it.
We also should not be doing the internal parsing ourselves.. the current implementation is json and there are already java json-parsing libraries we should make use of.
We don't want users to have the responsibility of parsing the returned RPC output, especially since the format may change over time. Instead, the
RPC
class should simply return aRpcResult
which has anoutput
field, and then thisoutput
can be fed into a high-level parser to retrieve information from it.We also should not be doing the internal parsing ourselves.. the current implementation is json and there are already java json-parsing libraries we should make use of.