diff options
author | Jeff Garzik <jgarzik@bitpay.com> | 2014-06-26 22:12:36 -0400 |
---|---|---|
committer | Jeff Garzik <jgarzik@bitpay.com> | 2014-06-26 22:18:30 -0400 |
commit | e35b37b1b8252c3d3f66001ba1efccd263307add (patch) | |
tree | 13591f78c28fc6fd247680c65d7fbbf943724228 /.tx | |
parent | 236ae8665efadf7b4456c0a9fbf204a5cb4ce9f4 (diff) |
RPC client: Simplify command line string-to-JSON-value conversion code
By default, all command line parameters are converted into JSON string
values. There is no need to manually specify the incoming type.
A binary decision "parse as string or JSON?" is all that's necessary.
Convert to a simple class, initialized at runtime startup, which offers
a quick lookup to answer "parse as JSON?" conversion question.
Future parameter conversions need only to indicate the method name
and zero-based index of the parameter needing JSON parsing.
Diffstat (limited to '.tx')
0 files changed, 0 insertions, 0 deletions