Fixes broken JSON responses from web service