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

Make parseJSONObject/Array return null when parsing fails #166

Closed
wants to merge 1 commit into from
Closed

Make parseJSONObject/Array return null when parsing fails #166

wants to merge 1 commit into from

Conversation

denezth
Copy link

@denezth denezth commented Jan 22, 2021

Fixes #165.

The RuntimeException (thrown when the JSON String could not be parsed) is now caught in both parseJSONObject() and parseJSONArray() so that null can be returned. I also fixed the indentation of parseJSONArray's doc.

@benfry
Copy link
Owner

benfry commented Jun 14, 2021

Thanks! Unfortunately the indentation change meant there was a conflict, but I've just added your change by hand. Much appreciated!

@benfry
Copy link
Owner

benfry commented Jun 14, 2021

Merged here: 53246fb

@benfry benfry closed this Jun 14, 2021
@github-actions
Copy link

This pull request has been automatically locked. Pull requests that have been closed are automatically locked 30 days after the last comment.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 15, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

parseJSONObject() and parseJSONArray() do not return null when parsing fails
2 participants