Skip to content

feat: add JSON flattening utility to improve TOON performance on nested data#86

Closed
Bhavesh-Ahalani wants to merge 1 commit intotoon-format:mainfrom
Bhavesh-Ahalani:feat/json-flattening-utility
Closed

feat: add JSON flattening utility to improve TOON performance on nested data#86
Bhavesh-Ahalani wants to merge 1 commit intotoon-format:mainfrom
Bhavesh-Ahalani:feat/json-flattening-utility

Conversation

@Bhavesh-Ahalani
Copy link
Copy Markdown

@Bhavesh-Ahalani Bhavesh-Ahalani commented Nov 5, 2025

Add JSON flattening utility to improve TOON performance on nested data

PR for 75, 81

Some benchmark example on randomly generated data:

Random data 1:

Screenshot 2025-11-05 at 9 05 43 PM

Random data 2:

Screenshot 2025-11-05 at 8 49 32 PM

Random data 3:

Screenshot 2025-11-05 at 8 49 50 PM

@johannschopplich
Copy link
Copy Markdown
Collaborator

Love the idea, thanks! However, I'm thinking about if this could be part of the official spec instead of a JS-specific feature.

@Bhavesh-Ahalani
Copy link
Copy Markdown
Author

Love the idea, thanks! However, I'm thinking about if this could be part of the official spec instead of a JS-specific feature.

That’s a great point — I agree this fits better at the spec level.
I’ll open an RFC in the spec repo to formalize this behavior and link it back here once it’s up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants