Skip to content

Decode a chunked Gzip JSON response

Reassemble HTTP chunked transfer data, decompress its Gzip body, and format the recovered JSON.

Install in Serialize

What it can do

  • Remove HTTP chunk framing
  • Decompress a binary Gzip body
  • Turn compact API data into readable JSON

How the recipe works

Dechunk HTTP response

Join the hexadecimal-length HTTP chunks in order.

Gunzip

Inflate the resulting Gzip member.

JSON Beautify

Indent and sort the JSON response.

Demonstration

Sample input

Binary sample included in the install link.

Expected result

A formatted JSON object with status ok and items 1, 2, and 3.

When to use it

  • Debugging captured HTTP bodies
  • Protocol teaching labs
  • Inspecting archived API responses

Adapt it

Use Strip HTTP headers before this workflow if your capture includes the response status line and headers.

Source and verification

Adapted from GCHQ CyberChef project and examples. The explanation and sample are written for Serialize, use synthetic or documentation-safe data, and are checked against the current operation catalogue. The workflow runs locally without an external API call.

Navigation

Type to search…

↑↓ navigate↵ selectEsc close