I receive this JSON string from another site and I cannot modify what received from. The string is receive in $_POST and is :
[ { \"clientId\":\
I know there is already an answer to this but it may be worth noting that var_dump outputs Boolean values better it just has worse formatting IMO.
var_dump
Results in
Array ( [0] => 1 [1] => ) array(2) { [0]=> bool(true) [1]=> bool(false) }