Skip to content

Commit 697c22f

Browse files
committed
Don't serialise "params" property of a request if it's null (#25).
1 parent 4b96423 commit 697c22f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/JsonRpc/Client/Request.cs

+2-1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ public class Request
1212

1313
public string Method { get; set; }
1414

15+
[JsonProperty(NullValueHandling = NullValueHandling.Ignore)]
1516
public object Params { get; set; }
1617
}
17-
}
18+
}

0 commit comments

Comments
 (0)