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

Add and implement IsJson() string extension method #6614

Merged
merged 1 commit into from
Jul 9, 2020

Conversation

deanmarcussen
Copy link
Member

We have a few pr's in the works that are using JSON in their editor templates, and want to / need to validate that the text supplied in the editor is valid json. (refer #6536 and #6595)

This adds a string extension method .IsJson()to theOrchardCore.Mvc.Utilitiesclasses to do this, and implements it for theTrumbowyg` editors

@deanmarcussen deanmarcussen requested a review from agriffard July 9, 2020 07:18
@agriffard agriffard merged commit 1ee808f into dev Jul 9, 2020
@delete-merged-branch delete-merged-branch bot deleted the deanmarcussen/is-valid-json branch July 9, 2020 07:30
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.

2 participants