Add verification of parsing results in Event.

Prevent the server from crashing when someone passes valid, but badly
formatted JSON.