Description

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.

Steps to Reproduce

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.

Have Comments or More Details?

There's no existing public thread on this issue, so head over to AnswerHub just mention UE-135106 in the post.

0
Login to Vote

Unresolved
CreatedNov 16, 2021
UpdatedNov 24, 2021