Skip to content

JsonRpcProcessor ignores JsonSerializerSettings on response serialization #129

@delinea530

Description

@delinea530

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.

if (jsonResponse.Error != null)
{
writer.WritePropertyName("error"); writer.WriteRawValue(JsonConvert.SerializeObject(jsonResponse.Error));
}
else
{
writer.WritePropertyName("result"); writer.WriteRawValue(JsonConvert.SerializeObject(jsonResponse.Result));
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions