1#include <xrpld/rpc/Context.h>
2#include <xrpld/rpc/handlers/Handlers.h>
4#include <xrpl/json/json_value.h>
5#include <xrpl/protocol/jss.h>
17 for (
auto const& reservation : reservations)
19 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
@ arrayValue
array value (ordered list)
@ objectValue
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)