Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to nest arrays within value #4

Open
Bwarech opened this issue May 16, 2016 · 1 comment
Open

Ability to nest arrays within value #4

Bwarech opened this issue May 16, 2016 · 1 comment

Comments

@Bwarech
Copy link

Bwarech commented May 16, 2016

Check out how they do it here:
https://www.npmjs.com/package/csvtojson#from-string
where it says "empowered json parser"

It would be nice to create a structure like this, with nested arrays, using csv elements such as metadata.label[0]...

[
  {
    "file": “sample_doc.docx",
    "metadata": [
      {
        "label": “lob",
        "values": [
          “APV"
        ]
      },
      {
        "label": “state",
        "values": [
          “NY”,”CA"
        ]
      },
      {
        "label": “company",
        "values": [
          “GE”,”GG”,”GI”,”GC”,”CCM-GI”,”CCM-GC"
        ]
      }
    ]
  },
  ...
]

@codit0
Copy link

codit0 commented Mar 1, 2018

Great! This is what I need but can't find a hash option u.u

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants