Fix issue #75: JSON type was hardcoded with PUT method