Skip to content

Property with JSON dictionary value getting turned into empty array properties #125

@IainS1986

Description

@IainS1986

Describe the bug
We send up a 'config' of multiple Key/Value pairs as a single property in a tracking event.

This is done as a single JSON string.

We've noticed (but not 100% sure from when, we think when going from Xamarin to this nuget) that the Values of the all the Key/Value pairs are coming out as empty json arrays []

Expected behavior
The internal properties are not altered.

Screenshots
Here are some screenshots showing what we are sending, and then a screenshot of the raw data as appearing in Segment.

Screenshot of the 'Properties' object about to be sent the Analytics.Track function
Screenshot 2025-01-02 at 13 09 00 copy

Here's the config property expanded, showing it a string that contains JSON data with different values.
Screenshot 2025-01-02 at 13 09 19

However, here's how the data is appearing in Segment.
Screenshot 2025-01-02 at 13 24 53

Platform (please complete the following information):

  • Library Version in use: Confirmed live in 2.4.2, not tested live with 2.5.0 though.
  • Platform being tested: Android + iOS

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions