openthread-br  0.3.0-72c0388
Namespaces | Functions
json.hpp File Reference
#include "openthread/link.h"
#include "openthread/thread_ftd.h"
#include "rest/types.hpp"
#include "utils/hex.hpp"

Go to the source code of this file.

Namespaces

 otbr::rest::Json
 

Functions

std::string otbr::rest::Json::Number2JsonString (const uint32_t &aNumber)
 
std::string otbr::rest::Json::Bytes2HexJsonString (const uint8_t *aBytes, uint8_t aLength)
 
std::string otbr::rest::Json::CString2JsonString (const char *aCString)
 
std::string otbr::rest::Json::String2JsonString (const std::string &aString)
 
std::string otbr::rest::Json::Node2JsonString (const NodeInfo &aNode)
 
std::string otbr::rest::Json::Diag2JsonString (const std::vector< std::vector< otNetworkDiagTlv >> &aDiagSet)
 
std::string otbr::rest::Json::IpAddr2JsonString (const otIp6Address &aAddress)
 
std::string otbr::rest::Json::Mode2JsonString (const otLinkModeConfig &aMode)
 
std::string otbr::rest::Json::Connectivity2JsonString (const otNetworkDiagConnectivity &aConnectivity)
 
std::string otbr::rest::Json::Route2JsonString (const otNetworkDiagRoute &aRoute)
 
std::string otbr::rest::Json::RouteData2JsonString (const otNetworkDiagRouteData &aRouteData)
 
std::string otbr::rest::Json::LeaderData2JsonString (const otLeaderData &aLeaderData)
 
std::string otbr::rest::Json::MacCounters2JsonString (const otNetworkDiagMacCounters &aMacCounters)
 
std::string otbr::rest::Json::ChildTableEntry2JsonString (const otNetworkDiagChildEntry &aChildEntry)
 
std::string otbr::rest::Json::Error2JsonString (HttpStatusCode aErrorCode, std::string aErrorMessage)
 

Detailed Description

This file includes JSON formatter definition for RESTful HTTP server.