[ProfileAPI]: Inconsistent display the null value

Fixed in

EPiServer.Profiles.Client 1.24.0

Created

Dec 18, 2020

Updated

Apr 16, 2021

State

Closed, Fixed and tested


Description

1. Create a new profile like below:

POST: /api/v1.0/profiles
{
    "Info":
    {
        "ZipCode"null
    }
}

-> It returns 201 Created with body like this one:

{
    "ProfileId""545db9d4-79f8-49cb-ae63-34ab6ca95647",
      .....
    "Info": {
        "ZipCode"null
     }
}

2. Get the newly created profile in step 1:

GET /api/v1.0/profiles/default/545db9d4-79f8-49cb-ae63-34ab6ca95647

-> It returns the profile with info:

 {
     "ProfileId""545db9d4-79f8-49cb-ae63-34ab6ca95647",
     .....
     "Info": {},
 }

I think it should display consistent information in Info property