Skip to content

Add Json.decodeOneElement(bufferedSource: BufferedSource) #2854

@martinbonnin

Description

@martinbonnin

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions