Fix Invalid Json Response

Resolves #372