xgboost
|
Data structure representing JSON format. More...
#include <json.h>
Public Member Functions | |
Json () | |
Json (JsonNumber number) | |
Json & | operator= (JsonNumber number) |
Json (JsonInteger integer) | |
Json & | operator= (JsonInteger integer) |
Json (JsonArray list) | |
Json & | operator= (JsonArray array) |
Json (JsonObject object) | |
Json & | operator= (JsonObject object) |
Json (JsonString str) | |
Json & | operator= (JsonString str) |
Json (JsonBoolean boolean) | |
Json & | operator= (JsonBoolean boolean) |
Json (JsonNull null) | |
Json & | operator= (JsonNull null) |
Json (Json const &other)=default | |
Json & | operator= (Json const &other) |
Json (Json &&other) | |
Json & | operator= (Json &&other) |
Json & | operator[] (std::string const &key) const |
Index Json object with a std::string, used for Json Object. More... | |
Json & | operator[] (int ind) const |
Index Json object with int, used for Json Array. More... | |
Value const & | GetValue () const & |
Return the reference to stored Json value. More... | |
Value const & | GetValue () && |
Value & | GetValue () & |
bool | operator== (Json const &rhs) const |
Static Public Member Functions | |
static Json | Load (StringView str) |
Load a Json object from string. More... | |
static Json | Load (JsonReader *reader) |
Pass your own JsonReader. More... | |
static void | Dump (Json json, std::string *out) |
Friends | |
std::ostream & | operator<< (std::ostream &os, Json const &j) |
Data structure representing JSON format.
Limitation: UTF-8 is not properly supported. Code points above ASCII are invalid.
Examples:
|
inline |
|
inlineexplicit |
|
inlineexplicit |
|
inlineexplicit |
|
inlineexplicit |
|
inlineexplicit |
|
inlineexplicit |
|
inlineexplicit |
|
default |
|
inline |
|
static |
|
inline |
|
inline |
|
static |
Load a Json object from string.
|
static |
Pass your own JsonReader.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
friend |