[Hilo Oficial] Esto también es otro arte...el ARTE de programar
Cita
¿Alguno entiende de JSON's y me puede echar un cable?

Tengo esto y me gustaría saber cómo sacaríais el user_id del primer usuario, el 1.


Spoiler :
Código PHP:
{
┬á "users":[
┬á┬á┬á {
┬á┬á┬á┬á┬á "user_id":1,
┬á┬á┬á┬á┬á "name":"Chris Rivers",
┬á┬á┬á┬á┬á "mention_name":"chris",
┬á┬á┬á┬á┬á "email":"chris@hipchat.com",
┬á┬á┬á┬á┬á "title":"Developer",
┬á┬á┬á┬á┬á "photo_url":"https:\/\/www.hipchat.com\/chris.png",
┬á┬á┬á┬á┬á "last_active":1360031425,
┬á┬á┬á┬á┬á "created":1315711352,
┬á┬á┬á┬á┬á "status":"away",
┬á┬á┬á┬á┬á "status_message":"gym, bbl",
┬á┬á┬á┬á┬á "is_group_admin":1,
┬á┬á┬á┬á┬á "is_deleted":0
┬á┬á┬á 
},
┬á┬á┬á {
┬á┬á┬á┬á┬á "user_id":3,
┬á┬á┬á┬á┬á "name":"Peter Curley",
┬á┬á┬á┬á┬á "mention_name":"pete",
┬á┬á┬á┬á┬á "email":"pete@hipchat.com",
┬á┬á┬á┬á┬á "title":"Designer",
┬á┬á┬á┬á┬á "photo_url":"https:\/\/www.hipchat.com\/pete.png",
┬á┬á┬á┬á┬á "last_active":1360031425,
┬á┬á┬á┬á┬á "created":1315711352,
┬á┬á┬á┬á┬á "status":"offline",
┬á┬á┬á┬á┬á "status_message":"",
┬á┬á┬á┬á┬á "is_group_admin":1,
┬á┬á┬á┬á┬á "is_deleted":0
┬á┬á┬á 
},
┬á┬á┬á {
┬á┬á┬á┬á┬á "user_id":5,
┬á┬á┬á┬á┬á "name":"Garret Heaton",
┬á┬á┬á┬á┬á "mention_name":"garret",
┬á┬á┬á┬á┬á "email":"garret@hipchat.com",
┬á┬á┬á┬á┬á "title":"Co-founder",
┬á┬á┬á┬á┬á "photo_url":"https:\/\/www.hipchat.com\/garret.png",
┬á┬á┬á┬á┬á "last_active":1360031425,
┬á┬á┬á┬á┬á "created":1315711352,
┬á┬á┬á┬á┬á "status":"available",
┬á┬á┬á┬á┬á "status_message":"Come see what I'm working on!",
┬á┬á┬á┬á┬á "is_group_admin":1,
┬á┬á┬á┬á┬á "is_deleted":0
┬á┬á┬á 
}
┬á ]

[Imagen: TGxDnCO.gif]
Después del berriche me la suda todo


Mensajes en este tema
Re:Esto también es otro arte...el ARTE de programar - por Juntacadaveres - 25-10-2012 15:34
Re:Esto también es otro arte...el ARTE de programar - por Corona Radiata - 27-10-2012 03:00
RE: Esto también es otro arte...el ARTE de programar - por Kegluneq - 07-05-2016 22:42
Re:Esto también es otro arte...el ARTE de programar - por Juntacadaveres - 24-10-2012 16:47

Salto de foro:


Usuarios navegando en este tema: 7 invitado(s)