json: do not treat an empty body as an error
Handle empty payload test case
Merge pull request #7 from etix/master

json: do not treat an empty body as an error