Open Lighting Architecture  Latest Git
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

◆ Parse()

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 successful, false otherwise.

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