How to get yaml in to json?

Hey

Im trying to get my config in a node red call service node ( media_player // play_media )
But for that I need it in json - Need help <3

service: media_player.play_media
data:
  entity_id:  media_player.manu_2
  media_content_id: https://test.test.mp3
  media_content_type: music
  extra:
    volume: 35

Edit:
Easier than expected :wink:

{
    "entity_id": "media_player.manu_2",
    "media_content_id": "https://test.test",
    "media_content_type": "music",
    "extra": {
        "volume": 35
    }
}

https://www.convertjson.com/yaml-to-json.htm

1 Like