1
0
mirror of https://github.com/nlohmann/json.git synced 2026-07-30 23:53:02 +04:00

📝 make examples collapsible

This commit is contained in:
Niels Lohmann
2020-05-24 22:45:38 +02:00
parent ddf92606ab
commit 95a3c76643
14 changed files with 502 additions and 270 deletions
@@ -84,7 +84,7 @@ binary | *size*: 4294967296..18446744073709551615 | byte string (8 by
- half-precision floats (0xF9)
- break (0xFF)
!!! example
??? example
```cpp
--8<-- "examples/to_cbor.cpp"
@@ -159,7 +159,7 @@ Double-Precision Float | number_float | 0xFB
CBOR allows map keys of any type, whereas JSON only allows strings as keys in object values. Therefore, CBOR maps with keys other than UTF-8 strings are rejected.
!!! example
??? example
```cpp
--8<-- "examples/from_cbor.cpp"