Improved JSON errors for app.