Added support for UTF-8 character \u0000 in string
Brought to you by:
davegamble
I strongly needed support for binary values 0 in a string (not as terminator). I added a new function cJSON_CreateStringWithLen(..) to create a JSON string which contains the binary value 0 (non-printable character \u0000). Creating string arrays with strings containing the binary value 0 using cJSON_CreateStringArray(..) is not supported.
I would be pleased if this feature is merged (after further review/enhancement) to trunk.
Changed struct cJSON.
It's a pretty chunky change, and I'm going to need to tooth-comb through to check it... sorry I'm being so slow on this one, but please do leave it with me.