This class provides a tokenizer for non‐scalar bdljsn::Json objects.

Synopsis

Declared in <baljsn_jsontokenizer.h>

class JsonTokenizer;

Description

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 .

Type Aliases

Name

Description

allocator_type

Type of the allocator used to supply memory.

Enums

Name

Description

TokenType

Enumeration of tokenizer token types.

Member Functions

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.

Static Member Functions

Name

Description

print

Write the string representation of the specified value to stream.

toAscii

Return the string representation of the specified enumeration value.

Friends

Name

Description

BloombergLP::baljsn::JsonTokenizer_Visitor

This class extracts token information from a bdljsn::Json object.

Created with MrDocs