New paste Use cases Explore public pastes Text tools Developer API The Paste Library Security Sign in with Google

Share API responses and webhook JSON

JSON pastes work well for API responses, webhook events, and compact fixtures because people get a readable hierarchy while tools can consume the exact raw representation. Validate first so formatting does not hide a syntax error.

Share JSON at a glance

Use these three checks before you turn share json into a link for another person.

Keep the goal narrow

Share one task-specific artifact: Format API payloads into a hierarchy people can scan.

Start with the least exposure

Recommended first step: Validate with the local JSON tool

Remove risky details

Before upload: Review the share json checklist below to replace live values while preserving the context a recipient needs.

Share JSON tip: JSON formatter and validator adds this format-specific context: Check syntax and formatting locally before generating a link.

Share JSON workflows

A well-scoped share json artifact preserves the task-specific context below and can expire when that task ends.

01

Webhook payloads

Keep the event type and representative object structure, but replace signatures, account IDs, and personal fields with typed placeholders.

02

API responses

Preserve status-related fields and nesting that explain the behavior; remove bearer tokens, cookies, signed URLs, and live customer values.

03

Test fixtures

Use synthetic values that keep the original types, null cases, array shape, and boundary conditions needed to reproduce a parser problem.

Recommended paste settings

  1. 1Validate with the local JSON tool
  2. 2Select JSON highlighting
  3. 3Use a raw URL for machine retrieval
  4. 4Choose expiry based on the review

What not to include

Formatting is not sanitization. Inspect values for credentials and personal data, and never fetch and execute an untrusted paste as code.

For share json, a made-up but representative example is safer than a production export. Expiration can end future access to the source link, but it cannot recall a recipient’s copy.

Compare privacy controls →

Use encryption when share json must not be readable in storage

For a private share json artifact, encrypted mode applies AES-GCM in the browser before upload. Its key stays after # in the share URL and outside the normal server request.

Understand client-side encryption →
AaBEFORE UPLOADReadable content
AES-GCM
#%IN STORAGEEncrypted bytes

Share JSON questions

Practical answers about the access, retention, and context choices for share json.

Can the raw URL be used with curl?+

Yes, for an available unprotected paste. Passworded, encrypted, private, and one-time content intentionally restricts raw access.

Is JSON with comments valid?+

Standard JSON does not allow comments or trailing commas, although some application-specific parsers accept extensions.