Skip to content

csv2json not honouring -n when using -H #352

@tseemann

Description

@tseemann
% echo "1,foo,-3.6,bar,+3.7E-9,wen,007" | csvtk csv2json -H -n1,3,5,7

[
  [
    "1",
    "foo",
    "-3.6",
    "bar",
    "+3.7E-9",
    "wen",
    "007"
  ]
]

I would have expected ths:

[
  [
    1,
    "foo",
    -3.6,
    "bar",
    3.7E-9,
    "wen",
    7
  ]
]

Metadata

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