| 13 | using namespace jsoncons; |
| 14 | |
| 15 | void json_example() |
| 16 | { |
| 17 | std::bitset<70> bs1(ULLONG_MAX); |
| 18 | |
| 19 | std::string s; |
| 20 | encode_json(bs1, s); |
| 21 | std::cout << s << "\n\n"; |
| 22 | |
| 23 | auto bs2 = decode_json<std::bitset<70>>(s); |
| 24 | |
| 25 | assert(bs2 == bs1); |
| 26 | } |
| 27 | |
| 28 | void cbor_example() |
| 29 | { |