of the JSON data model, i.e.
when you can represent something useful in JSON, you should be able to
represent it in CBOR.
In short, CBOR is a faster and quite compact binary alternative to JSON,
with
the added ability of supporting serialisation of Perl objects. (JSON
often compresses better than CBOR though, so if you plan to compress the
data later and speed is less important you might want to
exts in the megabyte range,
C<CBOR::XS> usually encodes roughly twice as fast as L<Storable> or
L<JSON::XS> and decodes about 15%-30% faster than those. The shorter the
data, the worse L<Storable> per