Here is the litteral String displayed on front side when making an ajax call request.
'{
"nogescom": "",
"aa": "",
"acc": "",
"fournisseur": "001501",
"semaineEnt": "",
"debutPeriodeDep": "",
"finPeriodeDep": "",
"codepro": "",
"statutCde": "",
"statutBieCde": "",
"isfromgnx": false,
"usrcreatemodif": false,
"nocde": "",
"debutPeriodeCrea": "",
"finPeriodeCrea": "",
"fam": "",
"sfam": "",
"ssfam": "",
"entrepot": "",
"statutDepart": "",
"saison": "",
"portDepart": ""
}'
So, this literal String is sent to the back side in PHP 5.4
I'm trying to this on Back Side:
$json = new Services_JSON();
$criteresRecherche= (object) $json->decode($elements);
var_dump($criteresRecherche->fournisseur);
But the var_dump function displays null, I don't understand why!
$criteresRecherchevar to make sure it returns what you're expecting$elementsvar too, to make sure that its contents is really a json string