Honeycomb  0.1
Component-Model Framework
Classes | Namespaces | Typedefs | Enumerations | Functions | Variables
Json.h File Reference
#include "Honey/String/Id.h"
#include "Honey/Misc/Variant.h"
#include "Honey/Memory/SmallAllocator.h"
Include dependency graph for Json.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  honey::json::null_t
 Json null value type. More...
 
struct  honey::json::ValueError
 
class  honey::json::Value_< Config_ >
 Json value variant. Provide a Config to customize the variant's bounded types. More...
 
struct  honey::json::Config< ordered, Alloc >
 Configuration for json value variant. More...
 
struct  honey::json::Config< ordered, Alloc >::ObjectOrdered
 
class  honey::json::Value_< Config_ >
 Json value variant. Provide a Config to customize the variant's bounded types. More...
 

Namespaces

 honey
 Global Honeycomb namespace.
 
 honey::json
 Json string serialization format methods.
 

Typedefs

typedef Value_< Config<> > honey::json::Value
 Json value with default config. More...
 

Enumerations

enum  honey::json::ValueType {
  honey::json::ValueType::Null, honey::json::ValueType::Int, honey::json::ValueType::Real, honey::json::ValueType::Bool,
  honey::json::ValueType::String, honey::json::ValueType::Array, honey::json::ValueType::Object
}
 Json value type, corresponds to Value::Variant bounded type id. More...
 

Functions

template<class Config >
istream & honey::json::operator>> (istream &is, Value_< Config > &val)
 Convert a string to a json value tree. Returns either a tree with val as the root array/object, or null if string is empty. More...
 
ostream & honey::json::beautify (ostream &os)
 Output easily readable json with line breaks and indentation. More...
 
ostream & honey::json::escapeSlash (ostream &os)
 Escape forward slash characters in json output so it is suitable for embedding in HTML. More...
 
template<class Config >
ostream & honey::json::operator<< (ostream &os, const Value_< Config > &val)
 Convert a json value tree to a string. Throws ValueError on write failure. More...
 

Variables

static null_t honey::json::null
 Json null value. More...