Using REGEX to Handle Nested Double Quotes in JSON Strings in Python
I'm using Generative AI API to return text responses as JSON strings which I intend to feed data into an application in real time. The problem is that often the JSON response provided by GenAI API includes small errors- most…