mirror of
https://github.com/cerbero90/json-parser.git
synced 2025-07-03 21:46:34 +02:00
Add state to expect object keys
This commit is contained in:
@ -29,6 +29,13 @@ class State
|
||||
*/
|
||||
public string $buffer = '';
|
||||
|
||||
/**
|
||||
* Whether the token should be an object key.
|
||||
*
|
||||
* @var bool
|
||||
*/
|
||||
public bool $expectsKey = false;
|
||||
|
||||
/**
|
||||
* Instantiate the class.
|
||||
*
|
||||
|
Reference in New Issue
Block a user