Is it possible to force json field types while using the Unreal SDK?
When stepping through the `bool UPlayFabClientAPI::WritePlayerEvent(...)` function, I do _not_ hit the boolean switch case below.
case EJson::Boolean: { writer->WriteValue(JsonValue->AsBool()); break; }
But when viewing the event logs raw data, the JSON is displaying false/true values for fields populated with 0/1 number types.
Fields In Question: team0PlayerCount & team1PlayerCount & teamId
{ "EventName": "player_started_match", "EventNamespace": "title.AF0A", "Source": "AF0A", "EntityType": "player", "TitleId": "AF0A", "EntityId": "1848B07180DA0CAA", "EventId": "4420729caf2c49c5baede1cf7108c671", "SourceType": "GameClient", "clientSessionId": "78C563354140CFD957A5D69FB20D5E54", "platformName": "WindowsEditor", "tsUtc": "2019-04-22T19:29:25.9200000Z", "tsLocal": "2019-04-22T12:29:25.9200000Z", "team0PlayerCount": true, "team1PlayerCount": false, "teamId": false, "gameModeName": 2 }
Some cases, some values are displayed as their intended type. `team0Score`
{ "EventName": "player_ended_match", "EventNamespace": "title.AF0A", "EntityType": "player", "EntityId": "1848B07180DA0CAA", "EventId": "d6d55bc42812415698555893372bb530", "clientSessionId": "EE1B474D4FBDEF3F304949A2DCE32D28", "platformName": "WindowsEditor", "tsUtc": "2019-04-22T18:52:06.5130000Z", "tsLocal": "2019-04-22T11:52:06.5130000Z", "teamId": false, "team0Score": 2, "team1Score": 0 }
NOTE: I do recall that at some point these fields were populated with boolean values during implementation.
Could there be some type of field mapping on the PlayStream end that we are not aware of?