dont assume payload is always json

Fix for #7