Loading [MathJax]/extensions/tex2jax.js
Adobe Source Libraries 2.0.0
A collection of C++ libraries.
json_parser< T > Class Template Reference

A utility class that parses raw JSON data and uses a helper class to construct the desired representations of what is parsed. More...

#include <json.hpp>

Public Types

typedef T::object_type object_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_parser (const char *p)
value_type parse ()

Detailed Description

template<typename T>
class adobe::json_parser< T >

The helper class, T has some requirements:

Definition at line 49 of file json.hpp.

Member Typedef Documentation

◆ object_type

template<typename T>
typedef T::object_type object_type

Definition at line 53 of file json.hpp.

◆ array_type

template<typename T>
typedef T::array_type array_type

Definition at line 54 of file json.hpp.

◆ value_type

template<typename T>
typedef T::value_type value_type

Definition at line 55 of file json.hpp.

◆ string_type

template<typename T>
typedef T::string_type string_type

Definition at line 56 of file json.hpp.

◆ key_type

template<typename T>
typedef T::key_type key_type

Definition at line 57 of file json.hpp.

Constructor & Destructor Documentation

◆ json_parser()

template<typename T>
json_parser ( const char * p)
explicit

Definition at line 64 of file json.hpp.

Member Function Documentation

◆ parse()

template<typename T>
value_type parse ( )

Definition at line 67 of file json.hpp.