|
From: | Herman , Géza |
Subject: | Re: [External] : Re: [PATCH] Implement fast verisons of json-parse functions |
Date: | Sat, 30 Mar 2024 21:51:49 +0100 |
Drew Adams <drew.adams@oracle.com> writes:
>> 2. Handling of a single \0 byte > > Does JSON allow null bytes in its strings?Strict JSON doesn't allow null characters (U+0000). But does this parser only support strict JSON?
This parser only accepts JSONs which are according to the spec (in theory). But this is not different from the libjansson based parser in this regard. That also doesn't allow null characters in JSON.
Just to be sure that we're on the same page: this means that the parser doesn't support actual null bytes in the stream. But if a user wants to put a U+0000 character in a string, they can do that by using "\u0000".
[Prev in Thread] | Current Thread | [Next in Thread] |