Skip to content

Issue with the returned value of data.keySet().toArray()[0] #8

@OKhalkov

Description

@OKhalkov

The function data.keySet().toArray()[0] returns an incorrect value of [0] instead of the expected value "devName"

var data = decodeToJson(payload);
var key = data.keySet().toArray()[0];
return {msg: data, metadata: metadata, key: data.keySet().toArray()[0]};

image

image

Metadata

Metadata

Assignees

No one assigned

    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