You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note the single quotes instead of the double quotes from the example above.
If I replace each single quote with a double quote, both, jq and jshon are happy again.
And indeed, the JSON specification on https://www.json.org/json-en.html clearly declares that only double quotes can be used as string delimiters.
This though might be a bug in the Python json module. I'm running pdns_logger 0.0.2 on Debian 10 Buster with Python 3.7 (libpython3.7-stdlib package version 3.7.3-2+deb10u2).
The text was updated successfully, but these errors were encountered:
Hi,
At https://github.com/dmachard/pdns-logger#json-log-format, there is written:
But piping the actually generated JSON into
jq
orjshon
just generates very generic error messages:Reason is that the claimed to be JSON looks like this for me:
Note the single quotes instead of the double quotes from the example above.
If I replace each single quote with a double quote, both,
jq
andjshon
are happy again.And indeed, the JSON specification on https://www.json.org/json-en.html clearly declares that only double quotes can be used as string delimiters.
This though might be a bug in the Python
json
module. I'm runningpdns_logger
0.0.2 on Debian 10 Buster with Python 3.7 (libpython3.7-stdlib
package version 3.7.3-2+deb10u2).The text was updated successfully, but these errors were encountered: