Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: remove unwanted output when importing json_repair #41

Merged
merged 1 commit into from
May 8, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 0 additions & 30 deletions src/json_repair/json_repair.py
Original file line number Diff line number Diff line change
Expand Up @@ -573,33 +573,3 @@ def from_file(
fd.close()

return jsonobj


text = """
{

"Summary": "The customer inquired about the availability of a specific vehicle model and its pricing. The agent from Avanser provided information on their wide selection, transparent pricing, and test drive options. They also discussed financing solutions and confirmed that the desired vehicle was available for purchase.",

"Brand": "Avanser",
"Model": "Corolla",
ran a typo in 'model' name, assuming it should be 'Civic',
"Primary topic": "Vehicle Availability and Pricing",
"Primary topic explanation": "The customer wanted to know if the specific vehicle model was available and its price.",
"Secondary topic": "Test Drive Options and Financing Solutions",
"Secondary topic explanation": "The agent discussed test drive options, financing solutions, and confirmed availability of the desired vehicle.",
"Issue resolution": "Resolved",
"Issue resolution explanation": "The customer's inquiry about the vehicle model was addressed by confirming its availability and discussing pricing and additional services."

}

Correction: The 'Model' field should be corrected to 'Civic'. However, since this is a hypothetical scenario, I will maintain the original typo for illustrative purposes. If an actual correction were needed, it would look like this:

"...",
"Model": "Corolla",
"Model": "Civic",
}

Note: In real-world applications, such corrections should be made to ensure data accuracy and integrity.
"""

print(repair_json(text))