The Microsoft Bot Framework provides what you need to build and connect intelligent bots that interact naturally wherever your users are talking, from text/sms to Skype, Slack, Office 365 mail and other popular services.
When deserializing an Activity , teamsActivity and fromStreamingConnection are created due to the method name.
If we then serialize and deserialize it again we will end up with two properties named teamsActivity and fromStreamingConnection. This can created a few issues because it will have duplicate keys when deserialized so it's no longer a valid JSON.
Specific Changes
Added @JsonIgnore to the isFromStreamingConnection and isTeamsActivity methods
Description
When deserializing an
Activity
,teamsActivity
andfromStreamingConnection
are created due to the method name.If we then serialize and deserialize it again we will end up with two properties named
teamsActivity
andfromStreamingConnection
. This can created a few issues because it will have duplicate keys when deserialized so it's no longer a validJSON
.Specific Changes
@JsonIgnore
to theisFromStreamingConnection
andisTeamsActivity
methodsTesting