getSegmentsAsJson

Returns all segments for the profile as a JSON string.

This is a serialized version of segments with the same structure: a JSON array where each element contains the segment's id and name, e.g. [{"id":"...","name":"..."}].

Only use this method when you want to use it in combination with a BlueConic plugin (ex.: React Native, Flutter) that requires a serialized version of the segments.

Return

The segments as a JSON string.