Skip to content
86% off$349 $48.86code BF2026

Guides

Save and Name JSON Snippets in a Mac App While Debugging

Keep several JSON payloads saved and named while debugging on a Mac: named files, or pinned and renamed history in Bytepliers. Limits and fixes included.

GuideUpdated 7 min read

On this page

You're debugging an API, and you now have a good response, a bad one and three variations in between. Parking them in a Notion page and copy-pasting back and forth works for about an hour. This guide covers two better ways to save and name JSON snippets on a Mac, what each one can't do, and what to check when a payload goes missing.

Why juggling payloads in a notes app breaks down

A notes app is built for prose, not for payloads you paste, reformat and paste again. Three things go wrong in practice:

  • Every switch costs a round trip: copy, change app, paste, change back.
  • Rich-text editors can alter content. Smart quotes or collapsed whitespace can turn a valid payload into invalid JSON.
  • Nothing there knows it is JSON, so you can't format, filter or compare a payload where it is stored.

VS Code is free and fine for files, but an unsaved tab is not a saved snippet. If you close it, the payload is gone unless you saved it under a name.

Method 1: Save each payload as a named file

A file is the most durable saved snippet there is, and it opens in any editor. If you only keep a few payloads, this is enough and you don't need an app. The only discipline needed is the name.

Name files by what the payload is and what happened, for example orders-500-error.json, orders-200-ok.json, login-expired-token.json. When two payloads differ by one field, put the difference in the name.

In TextEdit, switch to plain text first (Format > Make Plain Text), or the file is saved as rich text and won't be valid JSON.

Save the clipboard to a file from Terminal

If a payload is already on your clipboard, these commands create a folder and save it in one step.

If a file with that name already exists, > overwrites it without asking, and the old contents are gone. Pick a new name each time.

bash
mkdir -p ~/json-snippets
pbpaste > ~/json-snippets/orders-500-error.json

pbpaste prints the clipboard as text, and > writes it to the file. To undo, delete the new file.

To put a saved file back on the clipboard:

bash
pbcopy < ~/json-snippets/orders-500-error.json

What this method can't do: it gives you no formatting, no search inside the payloads, and no quick way to flip between them. You still open each file to look at it.

Method 2: Pin and rename history in Bytepliers

Bytepliers is our developer-utilities app. Its JSON Formatter remembers recent inputs, and you can pin an entry and rename it, so a payload you care about stays put under a name you chose. History is kept per tool, so JSON Formatter has its own list.

  1. Open JSON Formatter with ⌘1 (Command-1), or pick it in the sidebar.
  2. Paste the payload into the input pane with ⌘V, drop a file on the editor, or press ⌘O to open one.
  3. Wait about 2 seconds after you stop typing. Bytepliers records the input then.
  4. Click the History button (clock icon) in the toolbar. The popover has Pinned and Recent sections.
  5. Pin the entry with the pin button on its row.
  6. Right-click the entry and choose Rename…. Type a name such as orders 500 error.
  7. Repeat for the next payload. To bring one back, open History and click it.

You can also load a pinned payload from the keyboard. Press ⌘K and type its name; pinned history items appear in the command bar as Load “name” into JSON Formatter.

What history keeps, and for how long

LimitValue
Entries per tool30
Size per entry200 KB
Total across all tools4 MB
Age30 days
Pinned entriesNever expire and skip the 30-entry cap, but still count toward the 4 MB total

History is stored in ~/Library/Application Support/Bytepliers/history.json, readable only by you. Nothing is synced anywhere, and there are no folders or collections for history. Pinning and renaming are the organizing tools. The Clear button in the popover removes unpinned entries and keeps your pins.

Why a payload may not be saved

By default Bytepliers does not record anything that looks like a secret. That includes text containing a JWT, a private key, AWS, GitHub, Slack, Stripe or Google API keys, bearer tokens, password= or api_key: style assignments, URL credentials, and Authorization, Cookie or X-API-Key header lines. A captured API response with auth headers or a token in the body falls into this group.

If a payload you expect isn't in History, this is the likely reason. Two ways out:

  • Save that payload as a file (Method 1, or File > Save… with ⌘S on the output).
  • Turn on Also record inputs that look like secrets in Settings (⌘,) > History. Bytepliers warns that JWTs, private keys and API tokens will then be written to the history file.

Keep two payloads open side by side

For comparing a good response with a bad one, history isn't the right tool. Use separate windows.

  • Open in New Window (right-click the tool in the sidebar, the toolbar More menu, or ⌘K then ⌥⏎) opens a window with its own independent input. It is titled like "JSON Formatter · 2".
  • File > New Window (⌘N) is different: the new window shares tool inputs with the others, so two windows on JSON Formatter show the same text.

To see what changed between two payloads, the JSON Compare tool shows a structural diff that ignores key order, whitespace and number spelling. Text Diff compares them as plain text. For formatting itself, see how to format JSON on Mac.

Which method to use

SituationUse
You want to share a payload or open it in other toolsA named file
You're debugging today and want fast switchingPinned history in Bytepliers
The payload contains tokens or keysA named file, unless you enable secret recording
You need two payloads visible at onceOpen in New Window
You want to move snippets to another MacFiles (Bytepliers settings export never includes history)

Checklist before you rely on a saved payload

  • The entry is pinned (pinned entries never expire).
  • It has a name you will recognize next week.
  • It is under 200 KB, or you also saved it as a file.
  • It doesn't contain secret-looking text, or you enabled the secrets option on purpose.
  • You pinned the original before editing a copy.

If nothing works

  • History says "Nothing yet". Check Settings > History and make sure Remember recent inputs per tool is on. Confirm you stopped typing for a couple of seconds after pasting.
  • A payload is missing. It may contain secret-looking text, be larger than 200 KB, or be older than 30 days and not pinned.
  • An old entry changed when you edited. Edits within 2 minutes extend the newest entry. Pin the original first.
  • Two windows show the same text. You used ⌘N. Close one and use Open in New Window.
  • Restored text at launch isn't what you wanted. Restore each tool's last input at launch in Settings > History controls this. Turning it off drops saved session inputs.
  • A very large payload. JSON Formatter accepts input up to 64 MB, but history entries are limited to 200 KB. Keep large payloads as files.

If it still misbehaves, contact support via the support page with this message:

text
Subject: Bytepliers JSON Formatter history not saving a payload

App: Bytepliers (version from the About window), macOS version: 
Problem: A pinned/recent JSON payload is missing from History.
Payload size: about KB. Contains tokens or auth headers: yes/no.
Settings > History: "Remember recent inputs per tool" is on/off;
"Also record inputs that look like secrets" is on/off.
Steps tried: waited 2+ seconds after pasting, checked Pinned and Recent.

Common questions

Does Bytepliers sync saved snippets to another Mac?

No. History stays in a local file and there is no cloud sync. Settings export covers layout, shortcuts, options and recipes, but never history, so move snippets as files.

Can I organize snippets into folders?

Not in history. You can pin and rename entries, but there are no folders or collections. Use a folder of named files if you need that structure.

Do pinned snippets count toward the 30-entry limit?

No. Pinned entries skip the per-tool cap and never expire, but they still count toward the 4 MB total.

Can I load a saved snippet without opening the window?

Press ⌘K inside Bytepliers and type the snippet's name to load it into JSON Formatter. Bytepliers is part of MacSuite and you can try it free for 7 days; see the JSON Formatter docs and history docs for more.

Every app.
One purchase.