Convert BZ2 to JSON

Turn BZ2 archives into JSON. The bzip2 layer is removed and the bytes inside are written as they were.

Converted in an isolated sandbox on our serversDeleted after 24 hours

Drop BZ2 files on the dialor turn it to pick what to do

The JSON inside, without the bzip2.The compression layer comes off. The JSON inside is written as it was.

  1. What you get

    One JSON file. The bzip2 layer is removed and the bytes inside are written exactly as they were, with nothing reworked on the way out.

    A BZ2 file holds a single file. The result is that one file.

  2. What it requires

    Ask for the format you know is inside. If the file inside is not JSON, the request is refused.

    The conversion stops with unsupported_elements when the file holds something the target cannot carry. Some inputs also cannot become the format the join takes, and they stop with the same code.

  3. Damaged files

    A BZ2 file that cannot be parsed stops with input_corrupted. There are no options to set for this conversion.

  4. Going the other way

    To compress a JSON file again, use JSON to BZ2. The same page set also lists every BZ2 conversion.

BZ2 and JSON.What each format is.

The formats

From · BZ2

Bzip2

A single file compressed with bzip2.

Extensions
.bz2
MIME type
application/x-bzip2
Kind
Archives
To · JSON

JSON

JSON, the data format of every API.

Extensions
.json
MIME type
application/json
Kind
Text and data

In your code.The same BZ2 to JSON conversion through the API, for your app or your agent.

terminal
$ cv convert archive.bz2 archive.json
$ cv convert archive.bz2 archive.json

Questions.What people ask about BZ2 to JSON.

01OF 04

No. The bytes inside the BZ2 file are written as they were. Only the bzip2 layer is removed.

The request is refused. Ask for the format you know is inside the file.

One file.

The file could not be parsed. The conversion stops with this code.

More conversions.Other ways in and out of BZ2 and JSON.