Skip to content

feature to drain the next value from the buffer #35

Open
@scott-wyatt

Description

@scott-wyatt

TLDR: See #34

Summary:
Occasionally in application development, a certain condition will arise where the next value being produced by a parser needs to be drained from the buffer as a string into memory.

A Drain next value as a string function should be able to take any JSON value and drain all the upcoming events so they are not dispatched and collect the buffer as a string until the value's terminus.

Purpose:
A JSON value is seldom the last form a given piece of data will be in. Event streams are made to dispatch to other consumers, and this function would make it possible to dispatch the next value as a completed string to another consumer.

Use Cases:

  1. Passing a value to another parser

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions