Debian Codegraph @

docs/content/en/commands/hugo_convert_toJSON.md

raw
1 ---
2 title: "hugo convert toJSON"
3 slug: hugo_convert_toJSON
4 url: /commands/hugo_convert_tojson/
5 ---
6 ## hugo convert toJSON
7
8 Convert front matter to JSON
9
10 ### Synopsis
11
12 toJSON converts all front matter in the content directory
13 to use JSON for the front matter.
14
15 ```
16 hugo convert toJSON [flags] [args]
17 ```
18
19 ### Options
20
21 ```
22 -h, --help help for toJSON
23 ```
24
25 ### Options inherited from parent commands
26
27 ```
28 --clock string set the clock used by Hugo, e.g. --clock 2021-11-06T22:30:00.00+09:00
29 --config string config file (default is hugo.yaml|json|toml)
30 --configDir string config dir (default "config")
31 -d, --destination string filesystem path to write files to
32 -e, --environment string build environment
33 --ignoreVendorPaths string ignores any _vendor for module paths matching the given Glob pattern
34 --logLevel string log level (debug|info|warn|error)
35 --noBuildLock don't create .hugo_build.lock file
36 -o, --output string filesystem path to write files to
37 --quiet build in quiet mode
38 -M, --renderToMemory render to memory (mostly useful when running the server)
39 -s, --source string filesystem path to read files relative from
40 --themesDir string filesystem path to themes directory
41 --unsafe enable less safe operations, please backup first
42 ```
43
44 ### SEE ALSO
45
46 * [hugo convert](/commands/hugo_convert/) - Convert front matter to another format