Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Threaded View
Avro >> mail # user >> json2avro


> Sorry I wasn't clear. Jansson uses null-terminated strings. The docs
> state "Normal null terminated C strings are used, so JSON strings may
> not contain embedded null characters." I've tested it and indeed, they
> cannot, Jansson cannot parse a string like "abc\u0000def".

Oh yes, NUL bytes in a string, gotcha.  You're right, that's my least
favorite thing about Jansson.  There's an open issue with a patch [1],
but there hasn't been any movement on it in a year, unfortunately.

[1] https://github.com/akheron/jansson/pull/63