Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
[Validator] Add new json Validator #28477
in so many cases we want to test if a value is a valid json or not, so I propose this new
Sep 15, 2018
referenced this pull request
Sep 16, 2018
For the early exit, see:
(and the other validators)
But for the "it has to be filled part" you should use
Sorry to come late here, but what's the purpose of a JSON validator?
Hi, we used to validate a lot of normal string inputs filled by contributors to see if valid JSON or not before saving them to the database. ( Application that provides configs as JSON used by other applications ). I'm not sure if it was the best way to provide configs but it was something like Cloudformation.