Help on getting data from http response
I'm trying to get data from the respnonse "actualvolume"
I've been exploring the forum here but i can't figure out what i'm doing wrong.
Parse type: Jhson
I get this response:
{"?xml":{"@version":"1.0","@encoding":"UTF-8"},"volume":{"@deviceID":"C4F312D5994F","targetvolume":"16","actualvolume":"16","muteenabled":"false"}}

















Can you do a little test?
Create 2x Double values:
Name: Target Volume double
Token name: targetvolume
Name: Actual Volume double
Token name: actualvolume
Create 2x String values:
Name: Target Volume string
Token name: targetvolume
Name: Actual Volume string
Token name: actualvolume
I tested the response on several online converters / parsers, and I believe that:
If we keep the <?xml version...?> part, the correct token name should be volume.targetvolume and volume.actualvolume
{ "?xml":{ "@version":"1.0", "@encoding":"UTF-8" }, "volume":{ "@deviceID":"C4F312D5994F", "targetvolume":"16", "actualvolume":"16", "muteenabled":"false" } }But if you remove the <?xml version...?>, the correct token name is actually only targetvolume and actualvolume, just the text, with no "." after or before.
{ "deviceID": "C4F312D5994F", "targetvolume": "10", "actualvolume": "10", "muteenabled": "false" }Can you test the token names only with targetvolume and actualvolume without any dots?
The double and strings values, are just to test the correct format. I supposed that the values from volume are coming as double values, but you can test both