1#include <xrpld/rpc/Context.h>
2#include <xrpld/rpc/handlers/Handlers.h>
4#include <xrpl/core/PeerReservationTable.h>
5#include <xrpl/json/json_value.h>
6#include <xrpl/protocol/jss.h>
18 for (
auto const& reservation : reservations)
20 jaReservations.
append(reservation.toJson());
Value & append(Value const &value)
Append value to array at the end.
std::vector< PeerReservation > list() const
virtual PeerReservationTable & getPeerReservations()=0
@ Array
array value (ordered list)
@ Object
object value (collection of name/value pairs).
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
json::Value doPeerReservationsList(rpc::JsonContext &context)