File tree 1 file changed +7
-7
lines changed
1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -18,8 +18,8 @@ json_serialize(buf, arr);
18
18
printf("%s\n", buf);
19
19
```
20
20
21
- ```
22
- > [ "Hello world!", 128 ]
21
+ ```json
22
+ [ "Hello world!", 128 ]
23
23
```
24
24
25
25
json-builder is fully interoperable with json-parser:
@@ -40,8 +40,8 @@ json_serialize(buf, arr);
40
40
printf("%s\n", buf);
41
41
```
42
42
43
- ```
44
- > [ 1, 2, 3 ]
43
+ ```json
44
+ [ 1, 2, 3 ]
45
45
```
46
46
47
47
Note that values created by or modified by json-builder must be freed with
53
53
-----
54
54
55
55
* ` json_serialize_mode_multiline ` — Generate multi-line JSON, for example:
56
- ```
56
+ ``` json
57
57
[
58
58
1 ,
59
59
2 ,
@@ -62,12 +62,12 @@ Modes
62
62
```
63
63
64
64
* ` json_serialize_mode_single_line ` — Generate JSON on a single line, for example:
65
- ```
65
+ ``` json
66
66
[ 1 , 2 , 3 ]
67
67
```
68
68
69
69
* ` json_serialize_mode_packed ` — Generate JSON as tightly packed as possible, for example:
70
- ```
70
+ ``` json
71
71
[1 ,2 ,3 ]
72
72
```
73
73
You can’t perform that action at this time.
0 commit comments