Skip to content

Parsing from stream leads to an array #589

Closed
@matsbror

Description

Hello,

I parse the following file from a stream:

{
  "anInt": 500,
  "aString": "fixed"
}

Then I send it to an output stream with dump(4), which yields the following output:

[
    {
        "aString": "fixed",
        "anInt": 500
    }
]

It has become embedded in an array. Do you know why and how can I get around it?
If it is consistent, I can of course deal with it as it is.

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions