File: options_json.inc

package info (click to toggle)
tcllib 1.14-dfsg-3%2Bdeb7u1
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 33,036 kB
  • sloc: tcl: 148,302; ansic: 14,067; sh: 10,320; xml: 1,766; yacc: 753; pascal: 551; makefile: 129; perl: 84; f90: 84; python: 33; ruby: 13; php: 11
file content (31 lines) | stat: -rw-r--r-- 831 bytes parent folder | download | duplicates (8)
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

[list_begin options]
[include options_std.inc]

[opt_def -indented boolean]

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

[para]

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


[opt_def -aligned boolean]

If this option is set the system will ensure 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 [option -indented] is set.

[para]

If the option 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]