diff options
author | José Bollo <jose.bollo@iot.bzh> | 2018-05-15 09:20:44 +0200 |
---|---|---|
committer | José Bollo <jose.bollo@iot.bzh> | 2018-06-13 17:15:01 +0200 |
commit | 4ead03856ae53c8aa292f7e81faecbc4c57eafaf (patch) | |
tree | 8248aa1d4b3bbebe4a233eb1438ab1953d22b4db /src/wrap-json.md | |
parent | ee625f6a8a4b8261fc5a2abf491d7ee490078134 (diff) |
wrap-json: Update and fixes for y/Y
Change-Id: I9026f3498a4860851a41a0d5d56d1880ece75306
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'src/wrap-json.md')
-rw-r--r-- | src/wrap-json.md | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/wrap-json.md b/src/wrap-json.md index a86d2a50..8f7693c3 100644 --- a/src/wrap-json.md +++ b/src/wrap-json.md @@ -75,6 +75,19 @@ arguments. : Like 'y' but output is base64. +`y?`, `Y?` (byte array or null) \[const uint8_t \*, size\_t\] + +: Like 'y' or 'Y' but allows to output a JSON null value + either when the buffer is *NULL* or when the size is *0*. + +`y*`, `y*` (optional byte array) \[const uint8_t \*, size\_t\] + +: Like 'y' or 'Y' but do not put JSON value + either when the buffer is *NULL* or when the size is *0*. + This format can only be used inside an object or an array. If used + inside an object, the corresponding key is additionally suppressed + when the value is omitted. See below for an example. + `n` (null) : Output a JSON null value. No argument is consumed. |