<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><category>pcsoft.fr.windev</category><copyright>Copyright 2026, PC SOFT</copyright><lastBuildDate>27 Mar 2019 17:29:26 Z</lastBuildDate><pubDate>27 Mar 2019 16:06:47 Z</pubDate><description>Bonjour à tous,&#13;
j'ai un fichier test.json qui est valide et j'aimerais afficher certaines données ça à l'air super simple mais je bloque totalement ..&#13;
mon fichier test.json&#13;
[code:xml]&#13;
{&#13;
"Voiture": [&#13;
        {&#13;
            "id": 1,&#13;
            "typeVehicule": "Voiture rouge)",&#13;
            "Transport": "AB"&#13;
        },&#13;
        {&#13;
            "id": 2,&#13;
            "typeVehicule": "Voiture bleu)",&#13;
            "Transport": "C"&#13;
        }&#13;
]&#13;
}&#13;
[/code]&#13;
&#13;
j'importe mon test.json dans windev et je le dragNdrop il me créé la ligne ci dessous&#13;
&#13;
[code:wl]&#13;
TESTjson est un JSON, description="test" &#13;
 &#13;
LIB_description = TESTjson.Voiture[2].typeVehicule  // il m'affiche 0&#13;
[/code]&#13;
le même fichier test.json en PHP je fais &#13;
[code:xml]&#13;
$TESTjson = $parsed_json-&gt;{'Voiture'}[2]-&gt;{'typeVehicule'};&#13;
echo $TESTjson;  // et il sort bien Voiture bleu&#13;
[/code]&#13;
Voila je voudrais simplement afficher les valeurs dans un champs (j'ai testé beaucoup de variante mais j'ai toujours comme réponse 0 ou NULL)&#13;
C'est surement super simple mais je sèche complètement &#13;
Merci d'avance à tous</description><ttl>30</ttl><generator>WEBDEV</generator><language>fr_FR</language><link>https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/225079-windev-24-json/read.awp</link><title>Windev 24 Json</title><managingEditor>moderateur@pcsoft.fr (El moderador)</managingEditor><webMaster>webmaster@pcsoft.fr (El webmaster)</webMaster><item><author>lionel</author><category>pcsoft.fr.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/225079-windev-24-json-225086/read.awp</comments><pubDate>27 Mar 2019 17:29:26 Z</pubDate><description>Sans doute parce que vous n'affectez rien à votre variable JSON&#13;
Il manque &#13;
TestJSON = &lt;chaine au format JSON&gt;</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/225079-windev-24-json-225086/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/225079-windev-24-json-225086/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/225079-windev-24-json/read.awp">Windev 24 Json</source><title>Re: Windev 24 Json</title></item></channel></rss>
