Skip to content

verticalOutput with Arrays #62

@xp4u1

Description

@xp4u1

The vertical output option isn't working.

jsonexport(
  // example data
  [
    {
      name: "Paul",
      xp: 26
    },
    {
      name: "Joshi",
      xp: 87
    },
    {
      name: "Jakob",
      xp: 120
    }
  ],
  { rowDelimiter: ";", verticalOutput: true },
  (error, csv) => {
    if (error) return console.error(error);
    console.log(csv);
  }
);

The output is with true and false:

name;xp
Paul;26
Joshi;87
Jakob;120

But should be:

name;Paul;Joshi;Jakob
xp;26;87;120

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions