If the type of a property in a Json string doesn't match the expected type in the Json serializable class being created, then the value for that property will not be read in. However, FromJson still returns true, which can make debugging issues difficult, as it indicates no error has occurred.
As an example, you can create a Json string for a FReplayEventListItem, changing the values for Time1 and Time2 to be strings instead of ints. Then, use FReplayEventList::FromJson to build the event list item. FromJson will return true, but the Time1 and Time2 will not be correct.
There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-135106 in the post.
1 |
Component | UE - Foundation - Core - UObject |
---|---|
Target Fix | 5.6 |
Created | Nov 16, 2021 |
---|---|
Updated | Oct 25, 2024 |