Object of class stdClass could not be converted to string error

前端 未结 6 1058
一生所求
一生所求 2021-01-05 00:12

I have the following string:

{\"Coords\":[{\"Accuracy\":\"65\",\"Latitude\":\"53.277720488429026\",\"Longitude\":\"-9.012038778269686\",\"Timestamp\":\"Fri J         


        
6条回答
  •  再見小時候
    2021-01-05 00:21

    Instead of

     $decoded_traces=json_decode($traces);
     echo $decoded_traces;
    

    try

    $decoded_traces=json_decode($traces, true);
    print_r $decoded_traces;
    

提交回复
热议问题