Open Lighting Architecture  Latest Git
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules 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. More...

Member Function Documentation

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

Parse a string containing JSON data.

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

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