diff --git a/src/ripple/app/hook/impl/applyHook.cpp b/src/ripple/app/hook/impl/applyHook.cpp index 5cf3ae067..9ff4f40b5 100644 --- a/src/ripple/app/hook/impl/applyHook.cpp +++ b/src/ripple/app/hook/impl/applyHook.cpp @@ -30,6 +30,7 @@ #include #include #include +#include using namespace ripple; // check if any std::optionals are missing (any !has_value()) @@ -5436,7 +5437,7 @@ DEFINE_JS_FUNCTION( returnJS(INVALID_ARGUMENT); std::cout << "sto_from_json, valid json\n"; - std::cout << json.asString() << "\n"; + std::cout << to_string(json) << "\n"; // turn the json into a stobject STParsedJSONObject parsed(std::string(jss::tx_json), json);