farling42 / obsidian-import-json

Plug-in for Obsidian.md which will create Notes from JSON files
MIT License
88 stars 5 forks source link

Support nested name lookups #13

Closed Sinled closed 2 years ago

Sinled commented 2 years ago

Hi thanks for great plugin.

Would it be possible to specify path to name in json import? It is useful when you are trying to import from files with several localisations e.g.

[
  {
    "en": { "name": "name_en" },
    "es": { "name": "name_es" }
  }
]

Also import files not always have array on top level of json file, and may have some meta information besides table data. It would be great to have option with path to data, so you don't need to manually edit json files before import.

farling42 commented 2 years ago

See #14 for your second suggestion.

farling42 commented 2 years ago

0.17.0 now supports specifying a path for the "Field to use as Note name". Each part of the path is separated by "."