Open Lighting Architecture: ola::web::JsonLexer Class Reference

| Open Lighting Architecture 0.10.9

Loading...
Searching...
No Matches
Static Public Member Functions | List of all members
ola::web::JsonLexer Class Reference
JSON

## 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

## ◆ Parse()

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

Parse a string containing JSON data.

Parameters

  input | the input string
  handler | the JsonParserInterface to pass tokens to.

Returns
  true if parsing was successful, false otherwise.

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

- include/ola/web/JsonLexer.h
- common/web/JsonLexer.cpp