Hi everyone, I'm trying to send an API request, I want OutSystems to remove all the empty object or value that I leave it empty. I have this object:

{
    "profile": {
        "name": "Logan",
        "appUserPreferences": [
            {
                "preferenceKey": "abc",
                "preferenceValue": "zyx"
            }
        ]
    }
}

I want to input preferenceKey and preferenceValue are empty, I expected the request would be like this:

{
    "profile": {
        "name": "Logan",
        "appUserPreferences": []
    }
}

But OutSystems serialize for me like this: 

{
    "profile": {
        "name": "Logan",
        "appUserPreferences": [
            {}
        ]
    }
}

Even I cleared the list of appUserPreference already.

Cristiana Umbelino wrote:

Have you checked this post?

https://www.outsystems.com/forums/discussion/50151/json-rest-api-response-with-empty-list/

The point is, I'm sending a request, not receive an empty response. I even clear the list by the condition to make sure it's empty. Or I should say that ''JSON REST API response request with empty list"