Jsonpath http Binding

Hi guys i would like to parse a Json file into different items. I already figured out that the easiest way would be http binding in combination with Json parse.

lets say i receive the following json:

{
  "response_code": 0,
  "power": "standby",
  "volume": 3,
  "mute": false,
  "max_volume": 100,
  "input": "hdmi",
  "distribution_enable": true,
  "sound_program": "stereo",
  "clear_voice": false,
  "subwoofer_volume": 4,
  "link_control": "standard",
  "link_audio_delay": "lip_sync",
  "disable_flags": 3
}

Lets say i want to parse both volume and input

URL will be :http://device/YamahaExtendedControl/v1/main/getStatus

Would that be the right call?

String  Input  "Input"    (Musiccast) {http="<[http://device/YamahaExtendedControl/v1/main/getStatus &Port=80:JSONPATH($.input)]"}

Number  Input  "Volume"    (Musiccast) {http="<[http://device/YamahaExtendedControl/v1/main/getStatus &Port=80:JSONPATH($.number)]"}

thanks in advance

I suppose it should be
String Input "Input" (Musiccast) {http="<[http://device/YamahaExtendedControl/v1/main/getStatus:60000:JSONPATH($.input)]"}

1 Like

Works like a charm thanks

Great support like always