JSON Settings
You can customize the way that JSON is formatted when it's written to files such as server.json and box.json as well as how it displays in the console when using commands such as server show and package show

JSON.indent

string
String to use for indenting lines. Defaults to four spaces.
1
config set JSON.indent=" "
Copied!

JSON.lineEnding

string
String to use for line endings. Defaults to CRLF on Windows and LF on *nix. Pass the actual character to use, not a placeholder.
1
config set JSON.lineEnding=`#chr 10`
Copied!

JSON.spaceAfterColon

boolean
Add space after each colon like "value": true instead of "value":true Defaults to false
1
config set JSON.spaceAfterColon=true
Copied!

JSON.sortKeys

string
Specify a sort type to sort the keys of json objects: text or textnocase
1
config set JSON.sortKeys=textnocase
Copied!

JSON.ANSIColors

struct
A struct of colors to use when displaying JSON in the CLI. You can use any color name from the system-colors command or a direct ANSI escape sequence.

JSON.ANSIColors.constant

string
The color to use for constant values (true/false/null). Defaults to "red".
1
config set JSON.ANSIColors.constant=PaleTurquoise1
Copied!

JSON.ANSIColors.key

string
The color to use for object key names. Defaults to "blue".
1
config set JSON.ANSIColors.key=Purple5
Copied!

JSON.ANSIColors.number

string
The color to use for numbers. Defaults to "aqua".
1
config set JSON.ANSIColors.number=SeaGreen3
Copied!

JSON.ANSIColors.string

string
The color to use for quoted string values. Defaults to "lime".
1
config set JSON.ANSIColors.string=MistyRose3
Copied!
Last modified 5mo ago