Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consider to implement ReaderJsonLexer::peekLeadingMatchingValue? #2626

Open
iseki0 opened this issue Apr 14, 2024 · 0 comments
Open

Consider to implement ReaderJsonLexer::peekLeadingMatchingValue? #2626

iseki0 opened this issue Apr 14, 2024 · 0 comments
Labels

Comments

@iseki0
Copy link

iseki0 commented Apr 14, 2024

What is your use-case and why do you need this feature?
Polymorphic deserialization on stream also expects a well performance.

Describe the solution you'd like
Would using InputStream#mark and InputStream#reset to implement this method be a good solution?

// Can be carefully implemented but postponed for now
override fun peekLeadingMatchingValue(keyToMatch: String, isLenient: Boolean): String? = null

@iseki0 iseki0 added the feature label Apr 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant