-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
support sigle line quoteless json parsing (#1170)
Prior: minified json didn't parse, now we support minified json for numeric boolean and null values. We could improve it further for literals. <!-- ELLIPSIS_HIDDEN --> > [!IMPORTANT] > Add support for parsing single-line JSON without quotes for numbers, booleans, and null in `JsonParseState`, with new test cases to validate functionality. > > - **Behavior**: > - Support parsing single-line JSON without quotes for numbers, booleans, and null in `JsonParseState`. > - Handles cases where values are followed by a comma and space, ensuring correct parsing. > - **Tests**: > - Add `test_recursive_union_on_multiple_fields_single_line_without_quotes` and `test_recursive_single_line` in `test_class.rs` to validate new parsing behavior. > - Add `test_recursive_union_on_multiple_fields_single_line_without_quotes_complex` to test complex nested structures without quotes. > > <sup>This description was created by </sup>[<img alt="Ellipsis" src="https://img.shields.io/badge/Ellipsis-blue?color=175173">](https://www.ellipsis.dev?ref=BoundaryML%2Fbaml&utm_source=github&utm_medium=referral)<sup> for 9aa485c. It will automatically update as commits are pushed.</sup> <!-- ELLIPSIS_HIDDEN -->
- Loading branch information
Showing
2 changed files
with
123 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters