Breaking Json API, return versions as chars.

This commit is contained in:
Arthur Britto
2012-07-07 19:44:52 -07:00
parent a0422631a2
commit 7ff41d62a1
2 changed files with 14 additions and 12 deletions

View File

@@ -57,9 +57,11 @@ std::string SerializedLedgerEntry::getText() const
Json::Value SerializedLedgerEntry::getJson(int options) const
{
Json::Value ret(mObject.getJson(options));
ret["type"] = mFormat->t_name;
ret["index"] = mIndex.GetHex();
ret["version"] = mVersion.getText();
ret["type"] = mFormat->t_name;
ret["index"] = mIndex.GetHex();
ret["version"] = std::string(1, mVersion);
return ret;
}