X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fwrap-json.md;h=8f7693c3a5812836550f689b08bac9cbef8ef969;hb=6b0b9047228c0da38458217c28190ff0c28e73a9;hp=a86d2a507ac937c1957a7716cdc159a22a3193c9;hpb=c8558c8a28966110aa3a356f95d3c60afe32b64a;p=src%2Fapp-framework-binder.git 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.