A have to send this Json Array from Android to a php script. In this case I've send this json with 1 element ('CABECERA') and in my php script I don't know how to parse to work with.
How I have to do to re-create an entire CABECERA object from this json?.
$_jsone_str= [ {\"CABECERA\":[{\"CustomerID\":\"1\",\"datetime\":\"\",\"fecha\":\"150303122830\",\"idadmin\":\"3\",\"idcli\":\"4\",\"msj\":\"\",\"nroped\":\"\",\"orderId\":\"1\",\"puntoVentaID\":\"AMALGAME\",\"status\":\"0\",\"total\":\"0.0\"}]}]
$json = json_decode($_jsone_str);
foreach ( $json ->CABECERA as $decode ){
print_r($decode);
}
How supose to parse this json array what I do wrong?
json_decode()what you are looking? | PHP >= 5.2.0