mercredi 4 mars 2015

JSON decode failed in php


Vote count:

0




I am trying to decode a json from my android application using php.But it returns a null string


Here is my code



$json="{account0Name: 'shamonsha665@gmail.com',account0Type: 'com.google',account1Name: 'mail.root5s@gmail.com',account1Type: 'com.google',account2Name: 'shamonwaste@gmail.com',account2Type: 'com.google',account3Name: '911.gksfapp@gmail.com',account3Type: 'com.google',account4Name: 'developer.root5@gmail.com',account4Type: 'com.google',account5Name: 'personal.root5@gmail.com',account5Type: 'com.google',account6Name: 'WhatsApp',account6Type: 'com.whatsapp',account7Name: 'shamonsha665@gmail.com',account7Type: 'com.linkedin.android',account8Name: '7736527089',account8Type: 'com.facebook.auth.login',deviceID: '911380450169267',phoneNo: '779808980',netCountry: 'in',netName: 'XXX',simNo: '8991197239007526600',simCountry: 'iX',simName: '!XX'}";

$owners=json_decode($json,true);
var_dump($owners);


var_dump() returns null value



asked 53 secs ago

Root

63






JSON decode failed in php

Aucun commentaire:

Enregistrer un commentaire