… | |
… | |
42 | format that aims to use a superset of the JSON data model, i.e. when you |
42 | format that aims to use a superset of the JSON data model, i.e. when you |
43 | can represent something in JSON, you should be able to represent it in |
43 | can represent something in JSON, you should be able to represent it in |
44 | CBOR. |
44 | CBOR. |
45 | |
45 | |
46 | In short, CBOR is a faster and very compact binary alternative to JSON, |
46 | In short, CBOR is a faster and very compact binary alternative to JSON, |
47 | with the added ability of supporting serialisation of Perl objects. |
47 | with the added ability of supporting serialisation of Perl objects. (JSON |
|
|
48 | often compresses better than CBOR though, so if you plan to compress the |
|
|
49 | data later you might want to compare both formats first). |
48 | |
50 | |
49 | The primary goal of this module is to be I<correct> and the secondary goal |
51 | The primary goal of this module is to be I<correct> and the secondary goal |
50 | is to be I<fast>. To reach the latter goal it was written in C. |
52 | is to be I<fast>. To reach the latter goal it was written in C. |
51 | |
53 | |
52 | See MAPPING, below, on how CBOR::XS maps perl values to CBOR values and |
54 | See MAPPING, below, on how CBOR::XS maps perl values to CBOR values and |