Foros del Web » Programando para Internet » PHP »

PHP OO Json complejo

Estas en el tema de Json complejo en el foro de PHP en Foros del Web. Hola amigos, necesito recorrer un json un poco complejo; Código PHP: "response" : {      "result" : {          "Cases" : {              "row" : [{                      "fl" : [{ ...
  #1 (permalink)  
Antiguo 26/03/2014, 12:57
Avatar de chinoloco  
Fecha de Ingreso: julio-2003
Mensajes: 83
Antigüedad: 21 años, 5 meses
Puntos: 1
Json complejo

Hola amigos,

necesito recorrer un json un poco complejo;

Código PHP:
"response": {
    
"result": {
        
"Cases": {
            
"row": [{
                    
"fl": [{
                        
"content""35673000003060653",
                        
"val""CASEID"
                    
}, {
                        
"content""/ShowHomePage.do#Cases/dv/32d4cc22db11cee00850e808c07f377d0b498ee34174141d",
                        
"val""URI"
                    
}, {
                        
"content""35673000000006907",
                        
"val""DEP_ID"
                    
}, {
                        
"content""INFORMACION",
                        
"val""Department"
                    
}, {
                        
"content""35673000003060651",
                        
"val""CONTACTID"
                    
}, {
                        
"content""noemi_romanal",
                        
"val""Contact Name"
                    
}, {
                        
"content""[email protected]",
                        
"val""Email"
                    
}, {
                        
"content""null",
                        
"val""Phone"
                    
}, {
                        
"content""Factura",
                        
"val""Subject"
                    
}, {
                        
"content""50654",
                        
"val""Request Id"
                    
}, {
                        
"content""null",
                        
"val""Due Date"
                    
}],
                    
"no""1"
                
}, {
                    
"fl": [{
                        
"content""35673000003059473",
                        
"val""CASEID"
                    
}, {
                        
"content""/ShowHomePage.do#Cases/dv/32d4cc22db11cee078e096de029016150b498ee34174141d",
                        
"val""URI"
                    
}, {
                        
"content""35673000000006907",
                        
"val""DEP_ID"
                    
}, {
                        
"content""INFORMACION",
                        
"val""Department"
                    
}, {
                        
"content""35673000000040001",
                        
"val""CONTACTID"
                    
}, {
                        
"content"" (tarea interna)",
                        
"val""Contact Name"
                    
}, {
                        
"content""[email protected]",
                        
"val""Email"
                    
}, {
                        
"content""null",
                        
"val""Phone"
                    
}, {
                        
"content""Información",
                        
"val""Subject"
                    
}, {
                        
"content""50639",
                        
"val""Request Id"
                    
}, {
                        
"content""null",
                        
"val""Due Date"
                    
}],
                    
"no""2"
                
}, {
                    
"fl": [{
                        
"content""35673000003059273",
                        
"val""CASEID"
                    
}, {
                        
"content""/ShowHomePage.do#Cases/dv/32d4cc22db11cee0e63e129be536fa8d0b498ee34174141d",
                        
"val""URI"
                    
}, {
                        
"content""35673000000006907",
                        
"val""DEP_ID"
                    
}, {
                        
"content""INFORMACION",
                        
"val""Department"
                    
}, {
                        
"content""35673000002690007",
                        
"val""CONTACTID"
                    
}, {
                        
"content""clientes",
                        
"val""Contact Name"
                    
}, {
                        
"content""[email protected]",
                        
"val""Email"
                    
}, {
                        
"content""null",
                        
"val""Phone"
                    
}, {
                        
"content""Pago factura ",
                        
"val""Subject"
                    
}, {
                        
"content""50626",
                        
"val""Request Id"
                    
}, {
                        
"content""null",
                        
"val""Due Date"
                    
}],
                    
"no""3"
                
}, {
                    
"fl": [{
                        
"content""35673000001787167",
                        
"val""CASEID"
                    
}, {
                        
"content""/ShowHomePage.do#Cases/dv/32d4cc22db11cee06a745a75da0b8996f3148ec5bcd90913",
                        
"val""URI"
                    
}, {
                        
"content""35673000000006907",
                        
"val""DEP_ID"
                    
}, {
                        
"content""INFORMACION",
                        
"val""Department"
                    
}, {
                        
"content""35673000001787165",
                        
"val""CONTACTID"
                    
}, {
                        
"content""FELIX ",
                        
"val""Contact Name"
                    
}, {
                        
"content""[email protected]",
                        
"val""Email"
                    
}, {
                        
"content""null",
                        
"val""Phone"
                    
}, {
                        
"content""Lectura errónea",
                        
"val""Subject"
                    
}, {
                        
"content""26352",
                        
"val""Request Id"
                    
}, {
                        
"content""null",
                        
"val""Due Date"
                    
}],
                    
"no""4"
                
}

            ],
            
"no""20"
        
}
        ]
}
},
"uri""/api/json/requests/getrecords"
}


El json es un poco grande perola estructura es todo asi, como podría recorrerlo con php?,

gracias de antemano

Etiquetas: complejo, form, frameworks-y-php-orientado-a-objetos, json
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 03:01.