diff --git a/src/SerializedTypes.cpp b/src/SerializedTypes.cpp index 82cf3b88ad..3f9f5c9b65 100644 --- a/src/SerializedTypes.cpp +++ b/src/SerializedTypes.cpp @@ -99,6 +99,18 @@ std::string STUInt16::getText() const Json::Value STUInt16::getJson(int) const { + if (getFName() == sfLedgerEntryType) + { + LedgerEntryFormat *f = LedgerEntryFormat::getLgrFormat(value); + if (f != NULL) + return f->t_name; + } + if (getFName() == sfTransactionType) + { + TransactionFormat *f = TransactionFormat::getTxnFormat(value); + if (f != NULL) + return f->t_name; + } return value; }