Number values magically become nil after JSON Encoding and Decoding through MessagingService

Hello, I am trying to use messaging service to pass a place id and player count of that server to the starter place. After a while of debugging, I found out that the number values are correct when published and encoded, but nil when read and decoded.

Publishing data:

When I read this data, it does in fact receive the message, but the two values passed is somehow nil now.

I am using data.PlaceId and data.PlayerCount to read the data.

I found the problem, when using MessagingService the data is read in a table like this:

{
    ["Data"] = --<actual data you sent>
    ["Sent"] = --<time sent>
}

I wasn’t looking into table.Data, I was just looking into table.