JSON-RPC.NET icon indicating copy to clipboard operation
JSON-RPC.NET copied to clipboard

JsonRpcProcessor ignores JsonSerializerSettings on response serialization

Open delinea530 opened this issue 3 years ago • 3 comments

I think there is a bug in JsonRpcProcessor.ProcessSync() method since the serialization of the response of a request ignores completely the settings (a JsonSerializerSettings instance) argument.

https://github.com/Astn/JSON-RPC.NET/blob/177be604e532fe2c1e11fec9d4c8447138f7f741/Json-Rpc/JsonRpcProcessor.cs#L139-L146

delinea530 avatar Dec 16 '21 21:12 delinea530

++++

babang1da avatar Feb 10 '23 20:02 babang1da

FIX https://www.newtonsoft.com/json/help/html/DefaultSettings.htm

babang1da avatar Feb 10 '23 20:02 babang1da

FIX https://www.newtonsoft.com/json/help/html/DefaultSettings.htm

The problem is not with the default settings, the problem is that the code that was referenced in this issue ignores the argument settings of JsonRpcProcessor.ProcessSync(...).

gerardo-contijoch avatar Feb 17 '23 15:02 gerardo-contijoch

Merged

Astn avatar Mar 13 '24 00:03 Astn