value.h File Reference

#include <string>
#include <map>
#include <vector>
#include "ustr.h"
#include "errors.h"

Classes

class  Value
 This abstract base class represents all value objects. More...
class  StringValue
 This class represents string values. More...
class  IntValue
 This class represents an integer value. More...
class  FloatValue
 This class represents a floating point value. More...
class  BoolValue
 This class represents a boolean value. More...
class  NullValue
 This class represents a null object. More...
class  ObjectValue
 This class represents an object value. More...
class  ArrayValue
 This class represents an array value. More...

Functions

ValueParseJSON (const std::string &input)
 This is the main function you use to parse JSON input.
std::string Long2String (const long l)
 Convert an integer or long value to a std::string.
std::string Double2String (const double d)
 Convert an float or double value to a std::string.

Detailed Description

This file contains the main definitions used by the JSON parser.

Function Documentation

std::string Double2String ( const double  d  ) 

Convert an float or double value to a std::string.

Parameters:
d The floating point value to convert to a string.
Returns:
The value as a string.

std::string Long2String ( const long  l  ) 

Convert an integer or long value to a std::string.

Parameters:
l The integer value to convert to a string.
Returns:
The value as a string.

Value* ParseJSON ( const std::string &  input  ) 

This is the main function you use to parse JSON input.

The string passed in here should be a std::string of the bytes (octets) of the JSON message. This parser will figure out what encoding (UTF8, UTF16, or UTF32) was used and read the data accordingly.

Parameters:
input The input data as a std::string of bytes.


Generated on Wed Apr 18 15:50:11 2007 for JSON Parser by  doxygen 1.5.2