Call service node - need help with JSON Format

Hi,
I’m trying to change the heating profile of my Homematic IP Thermostats, but I’m failing to convert the following YAML code to JSON and use it with the call service node.

YAML:

service: homematic.put_paramset
data:
  interface: ip
  address: xxxxxxxxxxxxxx:1
  paramset_key: VALUES
  paramset:
    ACTIVE_PROFILE: 2

I tried it like this:

domain: homematic
service: put_paramset
data:

{
    "interface": "ip",
    "address": "xxxxxxxxxxxxxx:1",
    "paramset_key": "VALUES",
    "paramset": {
        "ACTIVE_PROFILE": 2
    }
}

but it is throwing an error message:

“Call-service API error. Error Message: extra keys not allowed @ data[‘0’]”

Can anyone help?

Thanks Dirk

Not sure as i dont have homematic myself. But maybe try like this:

{"interface": "ip", "address": "xxxxxxxxxxxxxx:1", "paramset_key": "VALUES", "paramset": { "ACTIVE_PROFILE": 2 } }

Otherwise, maybe also try to put the value 2 in Quotes “” as well.