# テキストファイル (.json) からのインポート

<figure><img src="https://2985347814-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6Y1mjnoaNcCi93oXSTE3%2Fuploads%2FGh1nIRUnSNXgoioWoPuO%2FImport%20Text%20File%20(.json).jpeg?alt=media&#x26;token=5a6ba188-3acb-494c-99e0-3b46ea5698b9" alt=""><figcaption></figcaption></figure>

Keeperは構造化されたJSONファイルのインポートに対応しています。たとえば、別のボルトからKeeperのファイルをバックアップした場合や、別のデータソースからファイルを作成する場合にこの機能を使用できますが、通常はKeeperエンタープライズの管理者や高度なスキルを備えたユーザー向けの機能となります。該当しない場合は、[CSVインポート](https://docs.keeper.io/jp/user-guides/import-records-1/import-a-.csv-file)の利用をおすすめします。

開始するには、アカウントのドロップダウンメニューから\
\&#xNAN;**\[設定] > \[インポート] >** 「別のソースから」の横に表示されている **\[インポート]** をクリックします。\
次に、ドロップダウンメニューから **\[Keeper JSON]** を選択します。

<figure><img src="https://2985347814-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6Y1mjnoaNcCi93oXSTE3%2Fuploads%2FrBrk7W4l7vQRiTyTWYom%2F2026-03-13_11-48-38.png?alt=media&#x26;token=b10fd9c4-9317-4f81-99e4-101933fdf96b" alt=""><figcaption></figcaption></figure>

JSONファイルは、以下の方法で作成できます。

* Keeperボルトから.JSONファイルをエクスポート
* KeeperコマンダーSDKから.JSONをエクスポート
* 独自のカスタムファイルを作成

JSONファイルの形式を正しく作成したら、そのファイルをインポート画面の「ここにファイルをドロップしてください」部分にドラッグ＆ドロップするか、コンピュータからファイルを選択します。

{% hint style="info" %}
JSONファイルは、すべての記号や文字を正しくインポートするためにUTF-8エンコードで保存されている必要があります。
{% endhint %}

### Keeperボルトから.JSONファイルを作成 (エクスポート)

既存のKeeperボルトから.JSONファイルを作成するには、アカウントのドロップダウンメニューから **\[設定]** > **\[エクスポート]** の順にクリックします。

**JSON**を選択し、**\[エクスポート]** をクリックします。表示された場合は、**マスターパスワード**を入力し、**\[今すぐエクスポート]** をクリックします。

<figure><img src="https://2985347814-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6Y1mjnoaNcCi93oXSTE3%2Fuploads%2FWkm7XaWFTg96X6VbHFZC%2F2026-03-13_11-59-50.png?alt=media&#x26;token=d94d49d6-2664-4078-afa5-3ef8232e8960" alt=""><figcaption><p>JSONファイルでKeeperのレコードをエクスポート</p></figcaption></figure>

### KeeperコマンダーからのJSONファイルの作成

Keeperコマンダーは開発者および管理者用のツールで、ボルトおよびエンタープライズアカウントを管理するための多くの機能がご利用になれます。

KeeperコマンダーSDKのリポジトリは以下にあります。\
<https://github.com/Keeper-Security/commander>

以下は、ボルトをJSON形式でエクスポートするコマンドとなります。

```
$ keeper shell
  _  __  
 | |/ /___ ___ _ __  ___ _ _ 
 | ' </ -_) -_) '_ \/ -_) '_|
 |_|\_\___\___| .__/\___|_|
              |_|            

 password manager & digital vault

Enter password for demo@company.com
Password: 
Logging in...
Syncing...
Decrypted [318] record(s)

My Vault> export --format json my_export_file.json                                                                                         
Processing... please wait.
318 records exported
```

### Keeperにインポートするためのカスタム.JSONファイルの作成

カスタムJSONインポートファイルを作成する際には、「records」、「folders」、「shared\_folders」の配列を使用できます。以下は、テスト目的でボルトにインポートできる例となります。

JSONファイルの例: レコード、フォルダ、共有フォルダ

このファイルで、以下のJSONインポート機能を使用します。

* レコードの配列
* 各レコードには、カスタムフィールドやメモがあり、フォルダに追加できます。
* フォルダは、通常の (個人用) フォルダまたは共有フォルダとして作成できます。
* レコードには、TOTPのシードも格納できます (高度な機能です。下のFacebookエントリをご参照ください)。

```
{
  "records": [
    {
      "title": "Dev Server 1",
      "login": "root",
      "password": "123123123",
      "login_url": "https://myserver.com",
      "notes": "These are some notes.",
      "custom_fields": {
        "Security Group": "Private"
      },
      "folders": [
        {
          "folder": "Private Folder 1"
        }
      ]
    },
    {
      "title": "Prod Server 1",
      "login": "root",
      "password": "kj949234723jhfs4jf7h",
      "login_url": "https://myprodserver.com",
      "notes": "These are some notes.",
      "custom_fields": {
        "Security Group": "Public",
        "IP Address": "12.45.67.8"
      },
      "folders": [
        {
          "folder": "Private Folder 2"
        },
        {
          "shared_folder": "My Shared Folder 1",
          "can_edit": true,
          "can_share": true
        }
      ]
    },
    {
      "title":"Google",
      "login": "testing",
      "password": "1234567890",
      "login_url": "https://google.com",
      "notes": "These are some notes.",
      "custom_fields": {
        "Favorite Food":"Cheetos"
      },
      "folders": [
        {
          "folder": "My Websites\\Online"
        }
      ]
    },
    {
      "title":"Facebook",
      "login": "me@gmail.com",
      "password": "123123123123",
      "login_url": "https://facebook.com",
      "notes": "This is our corporate shared record.",
      "custom_fields": {
        "Facebook Application ID":"ABC12345",
        "TFC:Keeper":"otpauth://totp/Amazon:me@company.com?secret=JBSWY3DPEHPK3PXP&issuer=Amazon&algorithm=SHA1&digits=6&period=30"
      },
      "folders": [
        {
          "folder": "Social Media"
        },
        {
          "shared_folder": "Shared Social",
          "can_edit": false,
          "can_share": false
        }
      ]
    }
  ]
}

```

以下は、カスタムフィールドを含む、ご利用になれるすべてのフィールドタイプとなります。

<figure><img src="https://2985347814-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6Y1mjnoaNcCi93oXSTE3%2Fuploads%2FWjuHSjstkzv0yPkKxsXM%2FWindowsTerminal1_fieldTypes.png?alt=media&#x26;token=306c86f3-2673-45be-9c29-59fd6f04bbdf" alt=""><figcaption><p>すべてのフィールドタイプ</p></figcaption></figure>

以下は、レコードタイプの一部となります (カスタムのレコードタイプを利用する場合はもっと多くなり、一部のレコードタイプを制限している場合はもっと少なくなります)。

<figure><img src="https://2985347814-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6Y1mjnoaNcCi93oXSTE3%2Fuploads%2Fm5nV6Dh4fBaJqnNNYPUW%2FWindowsTerminal_recodrdTypes.png?alt=media&#x26;token=1e8b86ac-f2bc-4494-a8ba-a5445e5794d7" alt=""><figcaption></figcaption></figure>

**JSONファイルの例: 共有フォルダとユーザーへの許可 - レコードなし**

以下のJSONファイルでは、ユーザーへの許可が設定された共有フォルダ構造 (レコードなし) を作成します。

注: 「UID」、「Team UID」などへの参照例は、ユーザーのボルト固有のプレースホルダとなります。

```
{
  "shared_folders": [
    {
      "path": "My Shared Folder 1",
      "manage_users": true,
      "manage_records": true,
      "can_edit": true,
      "can_share": true,
      "permissions": [
        {
          "uid": "kVM96KGEoGxhskZoSTd_jw",
          "manage_users": true,
          "manage_records": true
        },
        {
          "name": "myusername@company.com",
          "manage_users": true,
          "manage_records": true
        }
      ]
    },
    {   
      "path": "Customer1\\My Shared Folder 2", 
      "manage_users": false,
      "manage_records": false,
      "can_edit": false,
      "can_share": false,
      "permissions": [
        {   
          "uid": "<TEAM UID HERE>",
          "manage_users": false,
          "manage_records": false
        },  
        {   
          "name": "<RECIPIENT EMAIL HERE>",
          "manage_users": true,
          "manage_records": true
        }   
      ]   
    },  
    {
      "path": "Customer2\\My Shared Folder 3",
      "manage_users": true,
      "manage_records": true,
      "can_edit": true,
      "can_share": true,
      "permissions": [
        {
          "uid": "<TEAM UID HERE>",
          "manage_users": true,
          "manage_records": true
        },
        {
          "name": "myusername@company.com",
          "manage_users": true,
          "manage_records": true
        }
      ]
    }
  ]
}
```

**JSONファイルの例: 個人用のレコード/フォルダおよび共有レコード/フォルダの両方**

以下のJSONファイルの例は、複数の機能 (共有フォルダ、個人用フォルダ、レコード、TOTPシード) を組み合わせたものです。

注: 「UID」、「Team UID」などへの参照例は、ユーザーのボルト固有のプレースホルダとなります。

```
{
  "shared_folders": [
    {
      "path": "My Customer 1",
      "manage_users": true,
      "manage_records": true,
      "can_edit": true,
      "can_share": true,
      "permissions": [
        {
          "uid": "kVM96KGEoGxhskZoSTd_jw",
          "manage_users": true,
          "manage_records": true
        },
        {
          "name": "user@mycompany.com",
          "manage_users": true,
          "manage_records": true
        }
      ]
    },
    {   
      "path": "Testing\\My Customer 2", 
      "manage_users": true,
      "manage_records": true,
      "can_edit": true,
      "can_share": true,
      "permissions": [
        {   
          "uid": "ih1CggiQ-3ENXcn4G0sl-g",
          "manage_users": true,
          "manage_records": true
        },  
        {   
          "name": "user@mycompany.com",
          "manage_users": true,
          "manage_records": true
        }   
      ]   
    }
  ],
  "records": [
    {
      "title": "Bank Account 1",
      "login": "customer1234",
      "password": "4813fJDHF4239fdk",
      "login_url": "https://chase.com",
      "notes": "These are some notes.",
      "custom_fields": {
        "Account Number": "123-456-789"
      },
      "folders": [
        {
          "folder": "Optional Private Folder 1"
        }
      ]
    },
    {
      "title": "Bank Account 2",
      "login": "mybankusername",
      "password": "w4k4k193f$^&@#*%2",
      "login_url": "https://amex.com",
      "notes": "Some great information here.",
      "custom_fields": {
        "Security Group": "Public",
        "IP Address": "12.45.67.8",
        "TFC:Keeper":"otpauth://totp/Amazon:me@company.com?secret=JBSWY3DPEHPK3PXP&issuer=Amazon&algorithm=SHA1&digits=6&period=30"
      },
      "folders": [
        {
          "folder": "Optional Private Folder 1"
        },
        {
          "shared_folder": "My Customer 1",
          "can_edit": true,
          "can_share": true
        }
      ]
    }
  ]
}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.keeper.io/jp/user-guides/import-records-1/import-json.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
