> For the complete documentation index, see [llms.txt](https://commandbox.ortusbooks.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://commandbox.ortusbooks.com/5.5.0/config-settings/json-settings.md).

# 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.

```bash
config set JSON.indent="  "
```

## 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. &#x20;

```bash
config set JSON.lineEnding=`#chr 10`
```

## JSON.spaceAfterColon

**boolean**

Add space after each colon like `"value": true` instead of `"value":true`  Defaults to false

```bash
config set JSON.spaceAfterColon=true
```

## JSON.sortKeys

**string**

Specify a sort type to sort the keys of json objects: `text` or `textnocase`

```bash
config set JSON.sortKeys=textnocase
```

## 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".

```bash
config set JSON.ANSIColors.constant=PaleTurquoise1
```

## JSON.ANSIColors.key

**string**

The color to use for object key names. Defaults to "blue".

```bash
config set JSON.ANSIColors.key=Purple5
```

## JSON.ANSIColors.number

**string**

The color to use for numbers. Defaults to "aqua".

```bash
config set JSON.ANSIColors.number=SeaGreen3
```

## JSON.ANSIColors.string

**string**

The color to use for quoted string values. Defaults to "lime".

```bash
config set JSON.ANSIColors.string=MistyRose3
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://commandbox.ortusbooks.com/5.5.0/config-settings/json-settings.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
