Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
VarmeLin wants to merge1 commit intoSwiftyJSON:master
base:master
Choose a base branch
Loading
fromVarmeLin:damage-inspection
Open

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

VarmeLin wants to merge1 commit intoSwiftyJSON:masterfromVarmeLin:damage-inspection

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.

vdhamer reacted with thumbs up emoji
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Makes complete sense to have this change to account for invalid json.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

2 more reviewers

@luoxiuluoxiuluoxiu approved these changes

@Naveen-C-RamachandrappaNaveen-C-RamachandrappaNaveen-C-Ramachandrappa approved these changes

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@VarmeLin@luoxiu@Naveen-C-Ramachandrappa

[8]ページ先頭

©2009-2025 Movatter.jp