Scrapboxのインポート用json
code:import.json
{
"pages": [
{
"title": "page1title",
"created": "<number>",
"updated": "<number>",
"id" : "<id>",
"lines": [
"page1title",
"line2",
"line3",
//...
]
},
{
"title": "page2title",
"created": "<number>",
"updated": "<number>",
"lines": [
"page2title",
//...
]
}
]
}
createdとupdatedとidはoption
createdとupdatedを入れると、作成日時と更新日時を設定できる
Include metadata such as line.created and line.updated.にcheckを入れて取得したページ情報をimportしようとするとエラーになるので注意
exportしたときに最初に入ってくるnamedisplayNameexportedを消せば、テロメアを維持したままimportできる テロメアを維持したページのデータ形式
code:import_with_telomere.json
{
"pages": [
{
"title": "page1title",
"created": "<number>",
"updated": "<number>",
"id" : "<id>",
"lines": [
{
"text": "page1title",
"created": "<number>",
"updated": "<number>"
},
{
"text": "line2",
"created": "<number>",
"updated": "<number>"
},
//...
]
},
//...
]
}