File: json.inc

package info (click to toggle)
tcllib 1.20%2Bdfsg-1
  • links: PTS
  • area: main
  • in suites: bullseye
  • size: 68,064 kB
  • sloc: tcl: 216,842; ansic: 14,250; sh: 2,846; xml: 1,766; yacc: 1,145; pascal: 881; makefile: 107; perl: 84; f90: 84; python: 33; ruby: 13; php: 11
file content (39 lines) | stat: -rw-r--r-- 1,116 bytes parent folder | download | duplicates (18)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39

[include ../../format/json.inc]

[section Configuration]

The JSON export plugin recognizes the following configuration
variables and changes its behaviour as they specify.

[list_begin arguments]
[arg_def boolean indented]

If this flag is set the plugin will break the generated JSON code
across lines and indent it according to its inner structure, with each
key of a dictionary on a separate line.

[para]

If this flag is not set (the default), the whole JSON object will be
written on a single line, with minimum spacing between all elements.


[arg_def boolean aligned]

If this flag is set the generator ensures that the values for the keys
in a dictionary are vertically aligned with each other, for a nice
table effect. To make this work this also implies that [var indented]
is set.

[para]

If this flag is not set (the default), the output is formatted as per
the value of [var indented], without trying to align the values for
dictionary keys.

[list_end]

[emph Note] that this plugin ignores the standard configuration
variables [var user], [var format], [var file], and [var map] and
their values.