JSONは外に送られる?
- 確かめる
- 使う
APIの応答や、設定ファイルのJSONには、トークンやパスワード、顧客の情報が含まれていることがあります。JSONを整える・チェックする は、貼り付けたJSONを外に送らず、ブラウザの中で処理します。
仕組み
- 貼り付けた内容は、あなたのブラウザの中だけで処理されます。
- 整形も、チェックも、端末の中で行われます。
- JSONは、サーバーに送信されず、保存もされません。
手順
- 「整える前」に、JSONを貼り付けます。
- 「整える」を押して、結果を確認します。
- 「結果をコピー」でコピーして使います。
確認する方法
- 通信を切った状態(機内モード)でも、整形できます。
- ブラウザの開発者ツールで、データの送信がないことを確認できます。
それでも注意すること
- 機密情報の貼り付け先:結果を貼り付ける先(チャット、メール、課題管理)が、安全か。
- トークンやパスワード:JSONに含まれるものは、共有する前に伏せる。
- クリップボード:コピーした内容は、クリップボードに残る。使い終わったら、別の文字をコピーして上書きする。
- 共用のパソコン:使い終わったら、画面を閉じる。
- 画面の盗み見:公共の場所では、周りに気をつける。
機密情報を含むJSONを共有するとき
- アクセストークン、APIキー、パスワードは、「***」などに置き換える
- 個人情報(氏名、メール、電話)も、伏せる
- 共有する範囲を、限定する
向いている使い方
- 本番のAPI応答の、確認(機密を含むため、外部サービスに貼りたくない)
- 社内システムの設定ファイルの、整形
- 顧客データを含むJSONの、チェック
例
本番環境のAPIの応答を、読みやすくしたかった。トークンが含まれていたため、外部のサービスに貼りたくなかったが、ブラウザの中で処理されるため、安心して使えた。
つまずきやすい点
- ページを閉じたら、内容が消えた:保存されない仕組み。必要なら、コピーする。
- 大きなJSONで重い:端末のメモリによる。分けて整形する。
よくある質問
運営者に、JSONが見えますか?
いいえ。貼り付けた内容は、外に送られません。
まとめ
JSONは外に送られません。共有するときは、トークンや個人情報を伏せましょう。
JSONを整える・チェックするを使う(無料)あわせて使えるツール
- CSVとJSONを相互変換する:CSVとJSONを、すぐに相互変換します。
- ファイルとBase64を相互変換する:ファイルとBase64の文字を相互に変換します。
- 重複した行を消す・並べ替える:重複した行を消して、並べ替えます。
同じツールの、ほかの解説
Is My JSON Uploaded?
- Check
- Use
API responses and configuration JSON can contain tokens, passwords and customer information. Format and Validate JSON processes pasted JSON inside the browser without sending it outside.
How it works
- The pasted content is processed only inside your browser.
- Both formatting and checking happen on your device.
- The JSON is not sent to a server and is not stored.
Steps
- Paste the JSON into "Before".
- Press "Format" and check the result.
- Copy with "Copy result" and use it.
How to confirm
- It can format even with the connection cut (airplane mode).
- Browser developer tools can confirm that no data is sent.
Still be careful about
- Where confidential information is pasted: whether the destination (chat, email, issue tracker) is safe.
- Tokens and passwords: mask those contained in the JSON before sharing.
- Clipboard: copied content stays in the clipboard. When finished, overwrite it by copying some other text.
- Shared computers: close the screen when finished.
- Shoulder surfing: in public places, mind those around you.
When sharing JSON containing confidential information
- Replace access tokens, API keys and passwords with "***" and the like
- Mask personal information (names, email, phone) too
- Limit the scope of sharing
Uses it suits
- Checking production API responses (they contain secrets, so you don't want to paste them into outside services)
- Formatting in-house system configuration files
- Checking JSON containing customer data
Example
Wanted to make a production API response readable. It contained a token, so I didn't want to paste it into an outside service, but since it is processed in the browser, it could be used with peace of mind.
Common stumbling blocks
- The content disappeared when closing the page: by design nothing is saved. Copy it if needed.
- Heavy with large JSON: depends on the device's memory. Format in parts.
Frequently asked questions
Can the operator see the JSON?
No. The pasted content is not sent outside.
Summary
JSON is not sent outside. When sharing, mask tokens and personal information.
Use "Format and Validate JSON" (free)Tools that go well with this
- Convert CSV and JSON: Convert between CSV and JSON instantly.
- Convert Files and Base64: Convert between files and Base64 text.
- Remove Duplicate Lines and Sort a List: Remove duplicate lines and sort them.