Python working with elastic watch objects and triple quotes

Hi,
I have an application that I use to store our Elastic configuration objects (template, pipelines, users, roles, watches) in a github repo. With my program, we allow code changes to the repo via a PR and then the changes get pushed into the Elastic cluster. The system works great, except for dealing with watches with triple quoted ("""some code""") . What I have found out is that triple quoting something is not official json. Using the python json loader fails when trying to read in these watches.
Does anyone have any python library or idea on how to make this so that I can read in the watch as JSON and thus treat it like a dictionary object? I would prefer not to read it in as a string and just do a string comparison.
Thanks,
Tim

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.