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.
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.
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_elementswhen 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.Damaged files
A BZ2 file that cannot be parsed stops with
input_corrupted. There are no options to set for this conversion.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
Bzip2
A single file compressed with bzip2.
- Extensions
- .bz2
- MIME type
- application
/x -bzip2 - Kind
- Archives
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.
$ cv convert archive.bz2 archive.json$ cv convert archive.bz2 archive.jsonQuestions.What people ask about BZ2 to JSON.
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.