Open Lighting Architecture  0.9.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Static Public Member Functions | List of all members
ola::web::JsonLexer Class Reference

Detailed Description

Parse a string containing Json data.

As the JsonLexer encounters each token in the document, it calls the appropriate method on the JsonParserInterface. It's not quite a pure lexer because it doesn't pass through tokens like ':' but you get the idea.

Static Public Member Functions

static bool Parse (const std::string &input, class JsonParserInterface *handler)
 Parse a string containing JSON data.

Member Function Documentation

bool ola::web::JsonLexer::Parse ( const std::string &  input,
class JsonParserInterface handler 
)
static

Parse a string containing JSON data.

Parameters
inputthe input string
handlerthe JsonParserInterface to pass tokens to.
Returns
true if parsing was successfull, false otherwise.

The documentation for this class was generated from the following files: