Skip to content

Json Parser User Number as json_name_key #7212

@aretakisv

Description

@aretakisv

I am receiving data from MQTT in json format
The standard format is:

{
  "value_id": "52-32-1-0",
  "node_id": 52,
  "class_id": 32,
  "type": "byte",
  "genre": "basic",
  "instance": 1,
  "index": 0,
  "label": "Basic",
  "units": "",
  "help": "Basic status of the node",
  "read_only": false,
  "write_only": false,
  "min": 0,
  "max": 255,
  "is_polled": false,
  "value": 0,
  "lastUpdate": 1584636017962
}

My measurement should be class_id. As class_id is the class of Zwave (32 in this case)
this is a number, and json parser cannot use it as name_key. is there a way for this to happen?

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/jsonjson and json_v2 parser/serialiser relatedfeature requestRequests for new plugin and for new features to existing plugins

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions