Convert JSONC to CBOR

Turn JSONC files into CBOR. The same structure and key order in CBOR, with integers, floats, booleans, null, text, arrays and maps keeping their types and dates as text.

Converted in an isolated sandbox on our serversDeleted after 24 hours

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

JSONC becomes CBOR with its structure intact.Keys stay in order and values keep their types. Comments and trailing commas are dropped.

  1. What you get

    One CBOR file with the same structure and key order as your JSONC. Integers, floats, booleans, null, text, arrays and maps keep their types.

    Dates are kept as text. They are not turned into a special date type.

  2. What it leaves behind

    Comments are dropped. Trailing commas are dropped too. The data they sat beside is kept as it was.

    If your JSONC file explains its settings in comments, those explanations are not in the CBOR file. Keep the original if you still need them.

  3. Going the other way

    To turn CBOR back into JSONC, use CBOR to JSONC. For other conversions of this format, see every CBOR conversion.

JSONC and CBOR.What each format is.

The formats

From · JSONC

JSON with Comments

JSON that allows comments, as in editor and TypeScript configuration files.

Extensions
.jsonc
MIME type
text/x-jsonc
Kind
Text and data
To · CBOR

CBOR

Concise Binary Object Representation, the binary JSON of IoT and web standards.

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

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

terminal
$ cv convert report.jsonc report.cbor
$ cv convert report.jsonc report.cbor

Questions.What people ask about JSONC to CBOR.

01OF 04

Yes. The CBOR file has the same structure and key order as the JSONC file.

Yes. Integers, floats, booleans and null keep their types, and so do text, arrays and maps.

They are dropped. The CBOR file holds the data only.

No. Dates are kept as text.

More conversions.Other ways in and out of JSONC and CBOR.