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

Support simple hierarchical JSON #84

Open
ad-si opened this issue May 2, 2021 · 2 comments
Open

Support simple hierarchical JSON #84

ad-si opened this issue May 2, 2021 · 2 comments

Comments

@ad-si
Copy link

ad-si commented May 2, 2021

Since probably most JSON files which are valuable enough to be migrated to a database contain nested arrays, this feels like an absolute must have feature.

E.g. following JSON array can't be imported properly:

[
  {
    "date": "",
    "brand": "Generic Brand",
    "title": "Some Product",
    "version": "170",
    "website": "https://products.com/234723",
    "reviews": [
      {
        "url": "https://reviews.com/1",
        "lang": "en"
      }
    ]
  },
  {
    "date": "2021",
    "brand": "Other Brand",
    "title": "Thing",
    "website": "https://things.com/1232",
    "price": "70 €",
    "reviews": [
      {
        "url": "https://reviews.com/2",
        "lang": "en"
      }
    ]
  }
]
@mkeskes
Copy link

mkeskes commented Oct 20, 2021

I vote for this one!
One approach could be to flatten (r.f. https://github.com/amirziai/flatten) the nested json document as a preprocessing step.

@thombashi
Copy link
Owner

Poll: #89

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

No branches or pull requests

3 participants