JSON object.
More...
#include <zypp/base/Json.h>
|
std::ostream & | dumpOn (std::ostream &str, std::map< std::string, std::string >::const_iterator val_r) const |
|
|
std::map< std::string, std::string > | _data |
|
|
(Note that these are not member symbols.)
|
std::ostream & | operator<< (std::ostream &str, const Object &obj) |
| Stream output.
|
|
JSON object.
Definition at line 321 of file Json.h.
◆ Object() [1/3]
zypp::json::Object::Object |
( |
| ) |
|
|
inline |
◆ Object() [2/3]
Construct from map-iterator.
Definition at line 327 of file Json.h.
◆ Object() [3/3]
zypp::json::Object::Object |
( |
const std::initializer_list< std::pair< String, Value > > & | contents_r | ) |
|
|
inline |
Construct from map-initializer list { {k1,v1}, {k2,v2},... }.
Definition at line 331 of file Json.h.
◆ add() [1/2]
Add key/value pair.
Definition at line 336 of file Json.h.
◆ add() [2/2]
void zypp::json::Object::add |
( |
const std::initializer_list< std::pair< String, Value > > & | contents_r | ) |
|
|
inline |
◆ asJSON()
std::string zypp::json::Object::asJSON |
( |
| ) |
const |
|
inline |
JSON representation.
Definition at line 344 of file Json.h.
◆ asString()
std::string zypp::json::Object::asString |
( |
| ) |
const |
|
inline |
◆ dumpOn() [1/2]
std::ostream & zypp::json::Object::dumpOn |
( |
std::ostream & | str | ) |
const |
|
inline |
Stream output.
Definition at line 352 of file Json.h.
◆ dumpOn() [2/2]
std::ostream & zypp::json::Object::dumpOn |
( |
std::ostream & | str, |
|
|
std::map< std::string, std::string >::const_iterator | val_r ) const |
|
inlineprivate |
◆ operator<<()
std::ostream & operator<< |
( |
std::ostream & | str, |
|
|
const Object & | obj ) |
|
related |
Stream output.
Definition at line 371 of file Json.h.
◆ _data
std::map<std::string,std::string> zypp::json::Object::_data |
|
private |
The documentation for this class was generated from the following file: