madzak / python-json-logger

Json Formatter for the standard python logger
BSD 2-Clause "Simplified" License
1.74k stars 231 forks source link

Any way to replace double quotes with single quotes instead of quote escaping? #184

Open cjappl opened 10 months ago

cjappl commented 10 months ago

I'm wondering if there is a way to output strings substituted with single quotes:

{ ... "foo": "Foo(confidence_reason='MIL player's names are longer than MIN by 13.32%' confidence=NONE)" }

Instead of the escaped quotes (which is what happens currently:

{ ... "foo": "Foo(confidence_reason=\"MIL player's names are longer than MIN by 13.32%\", confidence=NONE)" }

Thanks for the lovely library, use it daily