Kodi Community Forum
JSON command to start youtube video - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111)
+---- Forum: OS independent / Other (https://forum.kodi.tv/forumdisplay.php?fid=228)
+---- Thread: JSON command to start youtube video (/showthread.php?tid=366661)



JSON command to start youtube video - extremeaudio - 2022-01-23

I'm trying to get to fire up a youtube video by sending a URL to my kodi box. 

I put together info from a few resources and constructed the following command to issue from a browser but I'm getting an error. Can someone help correct it please?
 
Code:
http://192.168.1.52:8080/jsonrpc?request='{"jsonrpc":"2.0","id":"1","method":"Player.Open","params":{"item":{"file":"plugin://plugin.video.youtube/?action=play_video&videoid='szjaHbjhauk'"}}}

I'm getting the error 

{"error":{"code":-32700,"message":"Parse error."},"id":null,"jsonrpc":"2.0"}


RE: JSON command to start youtube video - extremeaudio - 2022-01-25

Anyone can help with this? Sorry to bump. Even a link to demystifying these JSON constructs would help. Thanks.