Giter Club home page Giter Club logo

Comments (2)

farling42 avatar farling42 commented on July 29, 2024

I can see the issue, in that the first element of the pack.provinces array contains the numeric value 0 instead of an object.

Whilst that is technically a valid JSON array, it doesn't seem sensible to have an array where one element is a number and the remainder of the elements are objects.

It looks like this also applies to the pack.features array.

Whilst the first object of th epack.burgs array is an empty object.

Whilst I could add some extra logic to simply ignore any elements which are not a JSON object, the better solution would be for the web site which is generating the data to produce a sensible array of data in the first place.

from obsidian-import-json.

buttonpushertv avatar buttonpushertv commented on July 29, 2024

I thought along the same lines. I will reach out to Azgaar and see if it can be updated.

For the time being, it's easy enough to manually add in a placeholder element to allow the importer to do its job.

Thanks.

from obsidian-import-json.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.