skip to Main Content

Why can't Python decode this valid JSON with escaped quotes?

I have this almost JSON which has something that's only similar to JSON inside: TEST_LINE = """Oct 21 22:39:28 GMT [TRACE] (Carlos-288) org.some.awesome.LoggerFramework RID=8e9076-4dd9-ec96-8f35-bde193498f: { "service": "MyService", "operation": "queryShowSize", "requestID": "8e9076-4dd9-ec96-8f35-bde193498f", "timestamp": 1634815968000, "parameters": [ { "__type": "org.some.awsome.code.service#queryShowSizeRequest", "externalID": {…

VIEW QUESTION

Bash command mysql : escape single quote from variable

This command echo "mysql -u root nextcloud -Bse 'DELETE FROM oc_filecache WHERE path=""${FILE_PATH}"";'" will show that mysql -u root nextcloud -Bse 'DELETE FROM oc_filecache WHERE path="files_encryption/keys/files/xxx/xxxx/xxx L'AME/2xxxx/OC_DEFAULT_MODULE/master_x626.shareKey";' There is a single quote in the path. When i execute command, this…

VIEW QUESTION
Back To Top
Search