ripple/rippled — pull request #617 by scottschurr (2014-10-09 23:26:01+00:00)
Title: Refactor STParsedJSON to parse an object or array [RIPD-480]

The implementation of multi-sign has a SigningAccounts array as a
member of the outermost object. This array could not be parsed
by the previous implementation of STParsedJSON, which only knew
how to parse objects. This refactor supports the required parsing.

The refactor divides the parsing into three separate functions:

o parseNoRecurse() which parses most rippled data types.
o parseObject() which parses object types that may contain
arbitrary other types.
o parseArray() which parses object types that may contain
arbitrary other types.

The change is required by the multi-sign implementation, but is
independent. So the parsing change is going in as a separate
commit.

The parsing is still far from perfect. But this was as much as
needs doing to accomplish the ends and mitigate risk of breaking
the parser.