OZP-64: Fixing bad request json handling in REST