Skip to content

Commit 9449a98

Browse files
author
Chris Santero
committed
write null for JTokenType.Null
1 parent 8bfe89c commit 9449a98

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

JSONAPI/Core/DecimalAttributeValueConverter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public JToken GetValue(object resource)
3939

4040
public void SetValue(object resource, JToken value)
4141
{
42-
if (value == null)
42+
if (value == null || value.Type == JTokenType.Null)
4343
_property.SetValue(resource, null);
4444
else
4545
{

0 commit comments

Comments
 (0)