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

Raised a 'invalidJSON' error if initialization JSON data is corrupt. #1052

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Raised a 'invalidJSON' error if initialization JSON data is corrupt. #1052

wants to merge 1 commit into from

Conversation

VarmeLin
Copy link

I think you should tell the upper layer of the corrupted JSON data error. And the meaning of ‘null' and corruption is different in JSON, we better distinguish.

  • What behavior was changed?
    Set the error parameter to '.invalidJSON' when JSON parsing was failed.

  • What is the application scenario?
    I need to check the correctness of the JSON file returned from the remote, or I need to check the
    correctness of the JSON file passed in by the upper layer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants