> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.nvidia.com/nemo/relay/llms.txt.
> For full documentation content, see https://docs.nvidia.com/nemo/relay/llms-full.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.nvidia.com/nemo/relay/_mcp/server.

# Type Alias Json

> Type alias for `serde_json::Value`, used as the universal JSON representation throughout the NeMo Relay runtime.

Generated from `cargo doc --no-deps -p nemo-relay -p nemo-relay-adaptive -p nemo-relay-ffi`.

<pre />

Type alias for [`serde_json::Value`](https://docs.rs/serde_json/1.0.149/serde_json/value/enum.Value.html), used as the universal JSON representation throughout the NeMo Relay runtime.

## Aliased Type

<pre />

## Variants

### `Null`

<pre />

Represents a JSON null value.

```rust
let v = json!(null);
```

### `Bool(bool)`

<pre />

Represents a JSON boolean.

```rust
let v = json!(true);
```

### `Number(Number)`

<pre />

Represents a JSON number, whether integer or floating point.

```rust
let v = json!(12.5);
```

### `String(String)`

<pre />

Represents a JSON string.

```rust
let v = json!("a string");
```

### `Array(Vec<Value>)`

<pre />

Represents a JSON array.

```rust
let v = json!(["an", "array"]);
```

### `Object(Map<String, Value>)`

<pre />

Represents a JSON object.

By default the map is backed by a BTreeMap. Enable the `preserve_order` feature of serde\_json to use IndexMap instead, which preserves entries in the order they are inserted into the map. In particular, this allows JSON data to be deserialized into a Value and serialized to a string while retaining the order of map keys in the input.

```rust
let v = json!({ "an": "object" });
```