Notice: Trying to get property of non-object error
Solution 1:
This is because $pjs
is an one-element-array of objects, so first you should access the array element, which is an object and then access its attributes.
echo $pjs[0]->player_name;
Actually dump result that you pasted tells it very clearly.
Solution 2:
The response is an array.
var_dump($pjs[0]->{'player_name'});