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

Add Json.decodeOneElement(bufferedSource: BufferedSource) #2854

Open
martinbonnin opened this issue Nov 9, 2024 · 0 comments
Open

Add Json.decodeOneElement(bufferedSource: BufferedSource) #2854

martinbonnin opened this issue Nov 9, 2024 · 0 comments
Labels

Comments

@martinbonnin
Copy link
Contributor

Hi 👋

This is a follow up from #1789.

There is now decodeBufferedSourceToSequence() but it doesn't work for arbitrary data:

{ "foo": "bar" }

some important non-json data

Can there be decodeOneElement() that leaves the bufferedSource open just after the parsed JsonElement?

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