Skip to content

Commit

Permalink
Fix deserializing RawPropertyValue<JsonElement> (#322)
Browse files Browse the repository at this point in the history
  • Loading branch information
einarmo authored Jun 29, 2023
1 parent df3509c commit 19e571b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CogniteSdk.Types/Beta/DataModels/Value.cs
Original file line number Diff line number Diff line change
@@ -61,7 +61,7 @@ public override IDMSValue Read(ref Utf8JsonReader reader, Type typeToConvert, Js
// Since we really have no good way to distinguish between them, we just store it as JsonElement.
// It is an edge case either way.
var res = JsonSerializer.Deserialize<JsonElement>(ref reader, options);
return new RawPropertyValue<JsonElement>();
return new RawPropertyValue<JsonElement>(res);
}
else
{

0 comments on commit 19e571b

Please sign in to comment.