diff --git a/handlers/RPCHelpers.cpp b/handlers/RPCHelpers.cpp index 57c4d085..dd09b492 100644 --- a/handlers/RPCHelpers.cpp +++ b/handlers/RPCHelpers.cpp @@ -81,6 +81,15 @@ getJson(ripple::STBase const& obj) return value.as_object(); } +boost::json::value +getJson(Json::Value const& value) +{ + boost::json::value boostValue = + boost::json::parse(value.toStyledString()); + + return boostValue; +} + boost::json::object getJson(ripple::TxMeta const& meta) { diff --git a/reporting/server/SubscriptionManager.cpp b/reporting/server/SubscriptionManager.cpp index d8cebfe2..0dd30054 100644 --- a/reporting/server/SubscriptionManager.cpp +++ b/reporting/server/SubscriptionManager.cpp @@ -87,4 +87,4 @@ SubscriptionManager::pubTransaction( for (ripple::AccountID const& account : accounts) for (auto const& session: accountSubscribers_[account]) session->send(boost::json::serialize(pubMsg)); -} \ No newline at end of file +}