Obtaining the Kodi Player id and the using of id

Hello, I have discovered something new!

{"jsonrpc": "2.0", "method": "Player.GetActivePlayers", "id": 1}

This code obtains which player is active.

It returns as:
{"id": 1, "jsonrpc": "2.0", "result": [ { "playerid": 0, "type": "audio" } ]}

if playerid is 0 it is an audio file, if playerid is 1 it is a video file. These values are vital if you want to control Kodi. So Node-red and Kodi work are getting harder.
How can I use this code

{"jsonrpc": "2.0", "method": "Player.GetActivePlayers", "id": 1}

and then how can I obtain the player data to use in?

Remember that someone reading this thread may not be familiar with the other threads that have gone before. I suggest you edit your post and add some information about which node you are using and what you are doing with object you have shown.