akheron / jansson

C library for encoding, decoding and manipulating JSON data
http://www.digip.org/jansson/
Other
3.05k stars 809 forks source link

Relaxed JSON #547

Closed gonzus closed 4 years ago

gonzus commented 4 years ago

I am using jansson in one of my personal projects, and loving it.

Question: any plans to support a "relaxed" version of JSON, for some definition of relaxed? From the top of my head:

Thanks!

gsmecher commented 4 years ago

YAML (http://yaml.org) gives you all of these features, and JSON5 (http://json5.org) or HJSON (https://www.npmjs.com/package/hjson) give you most of them. There may be good C parsers for these formats, but Jansson is a JSON parser and these extensions are objectively not JSON.

(#13, #215, #232, #235, ...)

gonzus commented 4 years ago

Thanks for the pointers. JSON5 looks like an almost perfect fit for what I am looking for. But I also see how this has been raised in the past and the author has decided not to support it. His project, his rules.

Cheers!

gsmecher commented 4 years ago

Thanks for understanding. (FWIW, I do genuinely understand the appeal of these extensions.)