added support for JSON parsing with HTTP PATCH