added invalid json warning