---
id: "P:cAlgo.API.OptimizationPass.JsonReport"
kind: "property"
type: "T:cAlgo.API.OptimizationPass"
url: "https://help.ctrader.com/ctrader-algo/references/Plugin/Optimization/OptimizationPass/JsonReport/"
---

> Documentation index for agents: https://help.ctrader.com/ctrader-algo/llms.txt · machine index: https://help.ctrader.com/ctrader-algo/api.json

# OptimizationPass.JsonReport

Member of [OptimizationPass](https://help.ctrader.com/ctrader-algo/references/Plugin/Optimization/OptimizationPass/index.md).

## JsonReport

Gets the full per-pass backtest result as JSON.

Environments: Desktop supported · CLI not supported · Cloud not supported.

- CLI: Available to plugins only, and plugins cannot run in the CLI.
- Cloud: Available to plugins only, and plugins cannot run in the cloud.

C#:

```csharp
string JsonReport {get;}
```

Python:

```python
optimizationPass.JsonReport: str
```

### Returns

`string` — 

Available since cAlgo.API 5.9.

### Examples

C#:

```csharp
Optimization.PassCompleted += args => Print("Pass {0} report length: {1}", args.Pass.Id, args.Pass.JsonReport?.Length);
```

Python:

```python
api.Optimization.PassCompleted += lambda args: api.Print(f"Pass {args.Pass.Id} report: {args.Pass.JsonReport}")
```

