Skip to content

Commit

Permalink
Fix json process (TransformerOptimus#277)
Browse files Browse the repository at this point in the history
Currently supports various languages.
  • Loading branch information
hanhyalex123 authored Jun 9, 2023
1 parent ff4067a commit 25b762e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion superagi/helper/json_cleaner.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def extract_json_section(cls, input_str: str = ""):

@classmethod
def remove_escape_sequences(cls, string):
return string.encode('utf-8').decode('unicode_escape')
return string.encode('utf-8').decode('unicode_escape').encode('raw_unicode_escape').decode('utf-8')

@classmethod
def add_quotes_to_property_names(cls, json_string: str) -> str:
Expand Down

0 comments on commit 25b762e

Please sign in to comment.