doc: json: improve example documentation

The example will be well displayed in the documentation

Signed-off-by: Ismael Fillonneau <ismael.fillonneau@stimio.fr>
This commit is contained in:
Ismael Fillonneau 2019-11-08 10:29:33 +01:00 committed by Anas Nashif
commit 3f12671f4e

View file

@ -146,6 +146,7 @@ typedef int (*json_append_bytes_t)(const char *bytes, size_t len,
* @param sub_descr_ Array of json_obj_descr describing the subobject * @param sub_descr_ Array of json_obj_descr describing the subobject
* *
* Here's an example of use: * Here's an example of use:
*
* struct nested { * struct nested {
* int foo; * int foo;
* struct { * struct {
@ -189,6 +190,7 @@ typedef int (*json_append_bytes_t)(const char *bytes, size_t len,
* @param elem_type_ Element type, must be a primitive type * @param elem_type_ Element type, must be a primitive type
* *
* Here's an example of use: * Here's an example of use:
*
* struct example { * struct example {
* int foo[10]; * int foo[10];
* size_t foo_len; * size_t foo_len;