Add code to begin JSON validation.
Much of this is taken from the EventLogger extension.
https://gerrit.wikimedia.org/r/#/admin/projects/mediawiki/extensions/EventLogging