could anyone here help me with php an decoding json? Im trying to decode a json api url
Here is what I have at the moment:
$string = \' {
- or . are not valid object property names. Try instead using json_decode($string, true) (the true stands for "decode as an associative array"), and then do $json_o['workers']['someusername.jason-laptop'].
-
.
json_decode($string, true)
$json_o['workers']['someusername.jason-laptop']