C++ Logo


Advanced search

Re: [std-proposals] A Minimal JSON Support Library for C++

From: Thiago Macieira <thiago_at_[hidden]>
Date: Tue, 13 Feb 2024 11:36:25 -0800
On Tuesday, 13 February 2024 11:28:04 PST Yexuan Xiao wrote:
> CBOR has nothing to do with the proposal. First of all, CBOR and JSON are
> two different standards, CBOR is not a new version of JSON. Secondly, users
> use JSON, not CBOR.

I know they aren't the same. And there are users of CBOR. Not as many as JSON,
but they exist, especially in the more embedded / constrained environment
(CBOR came out of the IETF CoRE WG). There's no sense in spelling "false" with
5 bytes if one works.

But you're still missing the point: the fact that CBOR exists means there's
value in having reusable knowledge and even reusable algorithms (where
applicable) that apply to both. You need to explain in your proposal why
restricting to only JSON is a good idea, because there will be people asking
why not.

And especially why an API to store the types without parsing or encoding

Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
   Software Architect - Intel DCAI Cloud Engineering

Received on 2024-02-13 19:36:27