Skip to content

Instantly share code, notes, and snippets.

View franciscomvargas's full-sized avatar

Francisco Vargas franciscomvargas

View GitHub Profile
@franciscomvargas
franciscomvargas / json_comquotes.md
Last active October 15, 2023 18:56
JSON Quote Remover

JSON Quote Remover

Description

This Python function, json_comquotes, is a handy tool for preprocessing JSON data that contains unescaped quotes within string values. It takes a JSON string as input and transforms it by replacing the double and single quotes within the string values with alternative characters, allowing you to parse the JSON data without errors.

CLI Capability

Take a look into json_esquotes

Key Features:

  • Replaces double quotes " within string values with escaped double quotes \".