Module jsonl_converter::brackets
source · Expand description
This module helps us keep track of brackets that have been opened but not closed. This is useful for parsing JSON objects, which can contain nested objects.
Structs
- This struct is used to keep track of brackets that have been opened but not closed.
Functions
- Returns a map of brackets with their corresponding opening and closing brackets.
- Checks if a character is a closing bracket. Note: this function does not consider ‘)’ to be a closing bracket because it is not used in JSON.
- Checks if a character is an opening bracket. Note: this function does not consider ‘(’ to be an opening bracket because it is not used in JSON.