Read some values

bonjour les gars

je n'arrive pas a récupérer uniquement les valeurs "fr"
comment faire ?

[{"id":"4515adda.763934","type":"inject","z":"6323ae0a.473e4","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":180,"y":100,"wires":[["19c44480.cae4fc"]]},{"id":"19c44480.cae4fc","type":"http request","z":"6323ae0a.473e4","name":"","method":"GET","ret":"txt","paytoqs":false,"url":"https://www.coronavirus-statistiques.com/corostats/openstats/open_stats_coronavirus.json","tls":"","persist":false,"proxy":"","authType":"","x":330,"y":100,"wires":[["655883d2.2a206c"]]},{"id":"9f1931a2.dcbde","type":"debug","z":"6323ae0a.473e4","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":650,"y":100,"wires":[]},{"id":"655883d2.2a206c","type":"json","z":"6323ae0a.473e4","name":"","property":"payload","action":"","pretty":false,"x":490,"y":100,"wires":[["9f1931a2.dcbde"]]}]

With my poor french, if you require just the french stats
try

[{"id":"9711e7c6.f46c1","type":"change","z":"8d8a515a.78af18","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload[*][nom=\"france\"]","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":560,"y":1720,"wires":[["9f1931a2.dcbde"]]},{"id":"19c44480.cae4fc","type":"http request","z":"8d8a515a.78af18","name":"","method":"GET","ret":"obj","paytoqs":"ignore","url":"https://www.coronavirus-statistiques.com/corostats/openstats/open_stats_coronavirus.json","tls":"","persist":false,"proxy":"","authType":"","x":320,"y":1720,"wires":[["9711e7c6.f46c1"]]},{"id":"9f1931a2.dcbde","type":"debug","z":"8d8a515a.78af18","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":790,"y":1720,"wires":[]},{"id":"4515adda.763934","type":"inject","z":"8d8a515a.78af18","name":"","repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":170,"y":1720,"wires":[["19c44480.cae4fc"]]}]
1 Like

thank you so much