traps invalid json on the server Issue #13

Fixes issue #13.