Apache Mesos
Classes | Namespaces | Macros | Typedefs | Functions | Variables
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
 
class  JSON::internal::ParseContext
 

Namespaces

 JSON
 
 JSON::internal
 

Macros

#define PICOJSON_USE_INT64
 
#define __STDC_FORMAT_MACROS
 

Typedefs

typedef boost::variant< Null, String, Number, boost::recursive_wrapper< Object >, boost::recursive_wrapper< Array >, 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)
 
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...
 

Variables

constexpr size_t JSON::internal::STOUT_JSON_MAX_DEPTH = 200
 

Macro Definition Documentation

#define __STDC_FORMAT_MACROS
#define PICOJSON_USE_INT64