Adobe Source Libraries  1.43
Public Types | Public Member Functions | List of all members
json_generator< T, O > Class Template Reference

A utility class that uses a helper class to access a provided data structure and output well-formed JSON. More...

Public Types

typedef T::object_type object_type
 
typedef T::pair_type pair_type
 
typedef T::array_type array_type
 
typedef T::value_type value_type
 
typedef T::string_type string_type
 
typedef T::key_type key_type
 

Public Member Functions

 json_generator (O out)
 
generate (const value_type &value, std::size_t indent=0)
 

Detailed Description

template<typename T, typename O>
class adobe::json_generator< T, O >

A utility class that uses a helper class to access a provided data structure and output well-formed JSON.

Todo:
(sparent): Add the following options: (pretty, precise, ascii, ordered). Default are (compact, ?decimal, readible?, utf8, unordered.)

Definition at line 401 of file json.hpp.

Member Typedef Documentation

typedef T::object_type object_type

Definition at line 403 of file json.hpp.

typedef T::pair_type pair_type

Definition at line 404 of file json.hpp.

typedef T::array_type array_type

Definition at line 405 of file json.hpp.

typedef T::value_type value_type

Definition at line 406 of file json.hpp.

typedef T::string_type string_type

Definition at line 407 of file json.hpp.

typedef T::key_type key_type

Definition at line 408 of file json.hpp.

Constructor & Destructor Documentation

json_generator ( out)

Definition at line 410 of file json.hpp.

Member Function Documentation

O generate ( const value_type value,
std::size_t  indent = 0 
)

Definition at line 412 of file json.hpp.