Avoiding trimming values in JSON payload of Rest API request

Hi we have troubles creating CI instances using Rest API request

server/.../

The issue is with validation of Enum type attribute. The enum can be something like

" ", "value1","value2"

And the " " value is the problem. 

{
 "cis": [
   {
     "ucmdbId": "21",
      "type": "my_type",
      "properties": {
        "my_enum_attribute": " "
      }
    }
  ]
}

REST trims the my_enum_attribute and validation fails with 

{
  "errorCode": 400,
  "errorSource": null,
  "message": {
    "code": 120010001,
    "parameter": null,
    "description": "Enum Attribute type not handled",
    "errorParametersValues": [
      "my_enum_attribute",
      "LIST"
    ],
    "errorMap": null,
    "parametrizedError": true
  },
  "details": "Attribute [my_enum_attribute] - Attribute type [LIST] not handled: cannot find enum value in enum definition",
  "recommendedActions": null,
  "nestedErrors": null,
  "data": null,
  "error": "The following error has occurred:  Enum Attribute type not handled. Please consult logs for more details"
}

We have confirmed the trimming by sending " value1 " value instead. Any idea how to get rid of the trimming?