Skip to content

Poco::JSON::PrintHandler not working for nested arrays #782

@ajcross

Description

@ajcross

Related with #766 but not the same, and not fixed with bfe16d2

To reproduce: example test appended to testPrintHandler()

    json = "[[\"a\"],[\"b\",\"c\"]]"; 
    ostr.str("");
    pHandler->setIndent(0);
    parser.reset();
    parser.parse(json);
    assert (json == ostr.str());

The test doesn't pass.

Print handler outputs
[["a"]["b","c"]]

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions