#388 - json client needs to handle bad content more gracefully