JsonElement.Clone Method
Definition
Namespace: Corvus.Text.Json
Assembly: Corvus.Text.Json.dll
Source: JsonElement.cs
Clone()
Get a JsonElement which can be safely stored beyond the lifetime of the original JsonDocument.
public JsonElement Clone()
Returns
A JsonElement which can be safely stored beyond the lifetime of the original JsonDocument.
Remarks
If this JsonElement is itself the output of a previous call to Clone, or a value contained within another JsonElement which was the output of a previous call to Clone, this method results in no additional memory allocation.
Applies To
| Product | Versions |
|---|---|
| .NET | 9, 10 |
| .NET Standard | 2.0, 2.1 |
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests.
Open an issue