Add verification of parsing results in Event.

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