Skip to content

message-params: If message paremeters is not JSON, wrap into JSON string

Requiring user to invoke send-message with correctly quoted parameters string is not good for usability.

Wrap parameters string into JSON string and try again. If that works, log a warning use wrapped JSON string with parameters.

As an example these two commands will now invoke the same action:

`pactl send-message /card/bluez_card... switch-codec '"CODECNAME"'`
`pactl send-message /card/bluez_card... switch-codec CODECNAME`

Merge request reports