JSON Quotation marks missing in Request Logger plugin

Hi,

we are using the ReqestLogger Plugin.

It generates log lines like:

54,2022-10-26T07:11:48.1474279Z,200,,POST,http://xxx/webhooks/v1/checkout_order_completed,/webhooks/v1/checkout_order_completed,,"{useSandbox:False,id:WH-9VD13580D97927407-71489628K8659341M,event_version:1.0}"

The last column contains the Request DTO in JSON format. But the quoation marks are missing what makes it invalid JSON.

Is there a away to add the quoation marks like so:

54,2022-10-26T07:11:48.1474279Z,200,,POST,http://paypal.api.mauve.de/webhooks/v1/checkout_order_completed,/webhooks/v1/checkout_order_completed,,"{\"useSandbox\":False,\"id\":\"WH-9VD13580D97927407-71489628K8659341M\",\"event_version\":1.0}"

The CSV Format serializes complex types using the JSV Format not JSON.

You can parse it with .FromJsv<T>() extension method in C# or the entire file with csv.FromCsv<List<RequestLogEntry>>().

1 Like