More JSON work.

This commit is contained in:
JoelKatz
2012-10-03 13:53:06 -07:00
parent d7d5a0d2b1
commit f0320f0b7f
5 changed files with 102 additions and 19 deletions

View File

@@ -365,8 +365,8 @@ Json::Value STPath::getJson(int) const
Json::Value elem(Json::objectValue);
int iType = it.getNodeType();
elem["type"] = it.getNodeType();
elem["type_hex"] = strHex(it.getNodeType());
elem["type"] = iType;
elem["type_hex"] = strHex(iType);
if (iType & STPathElement::typeAccount)
elem["account"] = NewcoinAddress::createHumanAccountID(it.getAccountID());