# Diff Method

## Overloads

| [Diff(JToken, JToken)](https://help.qlik.com/en-US/sense-developer/May2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.StructureDiff.Diff.htm#Qlik_Engine_StructureDiff_Diff_Newtonsoft_Json_Linq_JToken_Newtonsoft_Json_Linq_JToken_) |  | Create a set of diffs between two tokens. |
| --- | --- | --- |

[](https://help.qlik.com/en-US/sense-developer/Subsystems/NetSDKAPIref/Content/Qlik.Engine.StructureDiff.Diff.htm) [](https://help.qlik.com/en-US/sense-developer/Subsystems/NetSDKAPIref/Content/Qlik.Engine.StructureDiff.Diff.htm)

## Diff(JToken, JToken)

Create a set of diffs between two tokens.

### Declaration

```

          public static IEnumerable<StructureDiff> Diff(JToken left, JToken right)
    
  
```

### Parameters

| Type | Name | Description |
| --- | --- | --- |
| Newtonsoft.Json.Linq.JToken | left | The old structure. |
| Newtonsoft.Json.Linq.JToken | right | The new structure. |

### Returns

| Type | Description |
| --- | --- |
| System.Collections.Generic.IEnumerable&lt;[StructureDiff](https://help.qlik.com/en-US/sense-developer/May2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.StructureDiff.htm)&gt; |  |