# Sandbox.Json.TrackedObjectDefinition.ToId

```csharp
System.Func<System.Text.Json.Nodes.JsonObject,string> ToId
```

Maps a JSON object to a unique identifier string.

## Remarks

The identifier could be derived from a specific property, a combination of properties, or a computed hash.
It's critical that this function:
1. Produces a truly unique value for each distinct object of this type
2. Never maps two different objects to the same ID
3. Is deterministic - always returns the same ID when applied to the same object

If you can just use a UUID or other guaranteed unique identifier.

Declared in [Sandbox.Json.TrackedObjectDefinition](/api/Sandbox.Json.TrackedObjectDefinition).
Assembly: `Sandbox.Engine`.
