mirror of
https://github.com/aljazceru/turso.git
synced 2025-12-29 05:54:21 +01:00
This PR implements a complete JSONB parser and serializer as current PR draft looks stale. Sorry for huge PR. I've choose a recursive parsing approach because: 1. It's simpler to understand and maintain 2. It follows SQLite's implementation pattern, ensuring compatibility 3. It naturally maps to JSON's hierarchical structure The implementation includes comprehensive test coverage for standard JSON features and JSON5 extensions. All test cases pass successfully, handling edge cases like nested structures, escape sequences, and various number formats. While the code is ready for review, I believe it would benefit from fuzz testing in the future to identify any edge cases not covered by the current tests. Ready for review, proposals and feedback. Closes #1114