cJSON icon indicating copy to clipboard operation
cJSON copied to clipboard

Support of jsonc

Open NehCoy opened this issue 3 years ago • 1 comments

Hi!

Microsoft defines a JSON-Format which support comments. The default file extension is jsonc ("c" for comment). It would be nice if cJSON would also support "JSON with comments" (*.jsonc).

Thanks.

NehCoy avatar Apr 28 '22 07:04 NehCoy

It probably would be very easy to create a pre-processing function to strip out the comments of a jsonc string buffer and return the json without comments.

mbratch avatar Apr 28 '22 16:04 mbratch

#738

Eventide avatar Feb 17 '23 10:02 Eventide