cJSON

mirror of Dave's cJSON
git clone git://git.thc420.xyz/cJSON
Log | Files | Refs | README | LICENSE

commit 24cf9308dee984d49357a949c96d6fb5a1a38bd4
parent 51d3df6c9f7b56b860c8fb24abe7bab255cd4fa9
Author: Max Bruckner <max@maxbruckner.de>
Date:   Tue, 18 Apr 2017 17:58:36 +0200

README: Caveat about zero terminated strings

Diffstat:
MREADME.md | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/README.md b/README.md @@ -375,6 +375,10 @@ which are more complex than I'd care to try and stash into a `const char array[] ### Caveats +#### Zero Character + +cJSON doesn't support strings that contain the zero character `'\0'` or `\u0000`. This is impossible with the current API because strings are zero terminated. + #### Character Encoding cJSON only supports UTF-8 encoded input and will always produce UTF-8 as output (If the input contained invalid UTF-8, it will most likely propagate it through to the output, thereby making the output non-valid UTF-8).