Skip to content

Check for malformed JSON before parsing/using #21

@0ceanlight

Description

@0ceanlight

Currently, GPT-generated JSON files are simply parsed and used without checking whether they are error-free. This causes the flask interface to crash, and the user is presented with an error log output.

Fix in line 33 of in jsonToProject.py:
nameAndContentObject = json.loads(nameAndContent, strict=False)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions