This class provides a tokenizer for non-scalar bdljsn::Json objects.
Declared in <baljsn_jsontokenizer.h>
class JsonTokenizer;
This class implements a mechanism that makes the organization and values of a non-scalar bdljsn::Json object available as a series of tokens. Some tokens have associated values. See .
| Name | Description |
|---|---|
allocator_type | Type of the allocator used to supply memory. |
| Name | Description |
|---|---|
TokenType | Enumeration of tokenizer token types. |
| Name | Description |
|---|---|
JsonTokenizer [constructor] | Constructors |
~JsonTokenizer [destructor] | Destroy this object. |
advanceToNextToken | Move to the next token in the source object. |
get_allocator | Return the allocator used by this object to supply memory. |
reset | Reset this tokenizer to use the specified json as a source object for tokens. |
tokenType | Return the type of the current token. |
value | Load into the specified data the value of the current token. |
| Name | Description |
|---|---|
print | Write the string representation of the specified value to stream. |
toAscii | Return the string representation of the specified enumeration value. |
| Name | Description |
|---|---|
BloombergLP::baljsn::JsonTokenizer_Visitor | This class extracts token information from a bdljsn::Json object. |