https://www.dendron.so/ logo
h

hv77

05/13/2022, 1:35 PM
Hi Jyeung, Thanks for the reply and docs link! I did refer them, and Kevin's video was also helpful to understand the pods + json import. But, json file exported from Roam seems to be complex compared to the example shown in the video and
fname
is not part of the data too. Refer to my
config.import.yml
below
Copy code
yaml
# description: Where to import from
src: '~/Downloads/hv77/hv77.json'

# description: name of vault to import into
vaultName: park

# description: whether to concatenate everything into one note
concatenate: false

# description: frontmatter to add to each note
frontmatter: 
  roam: true

# description: use the file name as the id
fnameAsId: true
j

jyeung

05/16/2022, 3:28 AM
@hv77 - can you send me a snippet of what your hv77.json looks like? You can remove most of the note contents if it's sensitive. Are the notes importing at all?
h

hv77

05/16/2022, 2:40 PM
Copy code
yaml
[
    {
        "children": [
            {
                "string": "hello world",
                "uid": "xxx",
                "create-time": 1595268706141,
                "edit-time": 1595268756503,
                ":create/user": {
                    ":user/uid": "xxxx"
                },

                ":edit/user": {
                    ":user/uid": "xxxxx"
                }
            },
            {
                "string": "taking notes",
                "uid": "xxxx",
                "create-time": 1595276040138,
                "edit-time": 1595318832199,
                ":create/user": {
                    ":user/uid": "xxxxx"
                },
                ":edit/user": {
                    ":user/uid": "xxxxxx"
                }
            }
        ],
        "uid": "07-20-2020",
        "edit-time": 1595268692327,
        "title": "July 20th, 2020",
        ":edit/user": {
            ":user/uid": "xxxx"
        },
        ":log/id": xxxx
    }
]
@jyeung The json file basically contains the notes as well as all the meta data related to the note including block reference.
Logseq has a good json import feature targeting Roam users
It will be great if Dendron consider improving "json import" feature for better interoperability and minimum friction for users switching from roam/logseq to Dendron
j

jyeung

05/17/2022, 9:33 AM
I see - right now, the format that the JSON import pod expects is quite limited. I think the error is coming from the fact that it expects the JSON object to have a property called 'fname', and 'body', such as
Copy code
json
[
  {
    "fname": "note-one",
    "body": "one body"
  },
  {
    "fname": "note-two",
    "body": "two body"
  }
]
Thanks for the suggestion on having a better import experience for users coming from other tools - it's definitely an important capability for us to have. 👍🏽
h

hv77

05/17/2022, 1:33 PM
Thank you for the clarification 🙏
s

svlier

07/30/2022, 10:02 AM
@jyeung Is the Roam JSON pod still somewhere on the roadmap. I tried to import Roam JSON but wasn't succesful sofar due to the above mentioned reason. I also asked @kevins8 in a personal message but didn't get feedback. For me it would be great if I could import Roam JSON and start working with Dendron
r

RzLnx88

11/30/2022, 7:59 PM
Hey, I hate to resurrect this thread, however I'm not seeing this mentioned anywhere else. 🙂 I'm not able to import JSON files either. Has anyone had any success with this?