Apache Mesos
Classes | Namespaces | Macros | Typedefs | Functions
json.hpp File Reference
#include <picojson.h>
#include <iomanip>
#include <iostream>
#include <limits>
#include <map>
#include <string>
#include <type_traits>
#include <vector>
#include <boost/variant.hpp>
#include <stout/check.hpp>
#include <stout/foreach.hpp>
#include <stout/jsonify.hpp>
#include <stout/numify.hpp>
#include <stout/result.hpp>
#include <stout/strings.hpp>
#include <stout/try.hpp>
#include <stout/unreachable.hpp>

Go to the source code of this file.

Classes

struct  JSON::String
 
struct  JSON::Number
 
struct  JSON::Object
 
struct  JSON::Array
 
struct  JSON::Boolean
 
struct  JSON::True
 
struct  JSON::False
 
struct  JSON::Null
 
struct  JSON::Value
 
struct  JSON::Comparator
 

Namespaces

 JSON
 
 JSON::internal
 

Macros

#define __STDC_FORMAT_MACROS
 

Typedefs

typedef boost::variant
< boost::recursive_wrapper
< Null >
, boost::recursive_wrapper
< String >
, boost::recursive_wrapper
< Number >
, boost::recursive_wrapper
< Object >
, boost::recursive_wrapper
< Array >
, boost::recursive_wrapper
< Boolean > > 
JSON::internal::Variant
 

Functions

bool JSON::operator== (const Value &lhs, const Value &rhs)
 
bool JSON::operator!= (const Value &lhs, const Value &rhs)
 
void JSON::json (BooleanWriter *writer, const Boolean &boolean)
 
void JSON::json (StringWriter *writer, const String &string)
 
void JSON::json (NumberWriter *writer, const Number &number)
 
void JSON::json (ObjectWriter *writer, const Object &object)
 
void JSON::json (ArrayWriter *writer, const Array &array)
 
void JSON::json (NullWriter *, const Null &)
 
template<typename T , typename std::enable_if< std::is_same< T, Value >::value, int >::type = 0>
void JSON::json (WriterProxy &&writer, const T &value)
 
std::ostream & JSON::operator<< (std::ostream &stream, const Boolean &boolean)
 
std::ostream & JSON::operator<< (std::ostream &stream, const String &string)
 
std::ostream & JSON::operator<< (std::ostream &stream, const Number &number)
 
std::ostream & JSON::operator<< (std::ostream &stream, const Object &object)
 
std::ostream & JSON::operator<< (std::ostream &stream, const Array &array)
 
std::ostream & JSON::operator<< (std::ostream &stream, const Null &null)
 
Value JSON::internal::convert (const picojson::value &value)
 
Try< Value > JSON::parse (const std::string &s)
 Returns the OCI v1 descriptor, image index, image manifest and image configuration from the given string. More...
 

Macro Definition Documentation

#define __STDC_FORMAT_MACROS