resolves issue #458

This fixes a number of JSON decoding issues that caused the PayloadJsonDecoder to crash.