helib::JsonWrapper Struct Reference

#include <JsonWrapper.h>

Public Member Functions

 JsonWrapper (const std::any &json_repr)
 
 operator bool () const
 
const std::any & getJSONobj () const
 
JsonWrapper at (const std::string &key) const
 
std::string toString () const
 
std::string pretty (long indent=2) const
 

Friends

std::ostream & operator<< (std::ostream &str, const JsonWrapper &wrapper)
 

Constructor & Destructor Documentation

◆ JsonWrapper()

helib::JsonWrapper::JsonWrapper ( const std::any &  json_repr)
inlineexplicit

Member Function Documentation

◆ at()

JsonWrapper helib::JsonWrapper::at ( const std::string &  key) const

◆ getJSONobj()

const std::any& helib::JsonWrapper::getJSONobj ( ) const
inline

◆ operator bool()

helib::JsonWrapper::operator bool ( ) const
inlineexplicit

◆ pretty()

std::string helib::JsonWrapper::pretty ( long  indent = 2) const

◆ toString()

std::string helib::JsonWrapper::toString ( ) const

Friends And Related Function Documentation

◆ operator<<

std::ostream& operator<< ( std::ostream &  str,
const JsonWrapper wrapper 
)
friend