Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 10/21/2023 in all areas

  1. Have a look at this code and see if that explains it: #include "Json.au3" $response = '{"code":"JYJY496","family":"security_shoes","family_variant":"security_shoes_by_size","parent":null,"categories":["c_j_synergy"],"values":{"marque":[{"locale":null,"scope":null,"data":"jallatte"}],"statut":[{"locale":null,"scope":null,"data":"0"}],"couleur":[{"locale":null,"scope":null,"data":"noir"}],"fabrication":[{"locale":null,"scope":null,"data":"tunisie"}],"type_chaussure":[{"locale":null,"scope":null,"data":"chaussures_de_securite_hautes"}],"systeme_de_fermeture":[{"locale":null,"scope":null,"data":"quicklio"}],"besoin":[{"locale":null,"scope":null,"data":["restitution_d_energie"]}],"activity":[{"locale":null,"scope":null,"data":["gros_oeuvre_tp_travaux_exterieurs"]}],"norme_iso":[{"locale":null,"scope":null,"data":["en_iso_20345_2011"]}],"marquage_ce":[{"locale":null,"scope":null,"data":["ci","hi","s3","src"]}],"photo_produit":[{"locale":null,"scope":null,"data":"1\/4\/a\/1\/14a114908cf6fc5f9447f4aca0cfa581ce00dc1c_JYJY496_JALTANO_SAS_ESD_lr.jpg","_links":{"download":{"href":"https:\/\/jallatte-staging.cloud.akeneo.com\/api\/rest\/v1\/media-files\/1\/4\/a\/1\/14a114908cf6fc5f9447f4aca0cfa581ce00dc1c_JYJY496_JALTANO_SAS_ESD_lr.jpg\/download"}}}],"name":[{"locale":"fr_FR","scope":null,"data":"JALTANO SAS ESD S3 CI HI SRC"}],"name_tech":[{"locale":null,"scope":null,"data":"JALTANO SAS ESD S3 CI HI SRC"}],"weight":[{"locale":null,"scope":null,"data":{"amount":"1482.0000","unit":"GRAM"}}],"weight_brut":[{"locale":null,"scope":null,"data":{"amount":"1717.0000","unit":"GRAM"}}],"privatif":[{"locale":null,"scope":null,"data":false}],"specifique":[{"locale":null,"scope":null,"data":false}],"sra_plat":[{"locale":null,"scope":null,"data":"0.7300"}],"srb_plat":[{"locale":null,"scope":null,"data":"0.3000"}],"sra_talon":[{"locale":null,"scope":null,"data":"0.7000"}],"srb_talon":[{"locale":null,"scope":null,"data":"0.2800"}],"descriptif":[{"locale":"fr_FR","scope":"web","data":"Chaussure de s\u00e9curit\u00e9 montante de style outdoor, con\u00e7ue avec une technologie anti-fatigue. Coloris noir. Chaussures\n\u00e9lectrostatiques dissipatrices ESD de classe environnementale II test\u00e9es suivant la norme EN 61340-4-3 et EN 61340-5-1\nprot\u00e9geant les dispositifs \u00e9lectroniques contre les ph\u00e9nom\u00e8nes de d\u00e9charge \u00e9lectrostatique."}]},"created":"2023-10-16T09:11:48+00:00","updated":"2023-10-16T15:01:13+00:00","associations":{"Embout":{"products":["PU00041"],"product_models":[],"groups":[]},"antiperforation":{"products":[],"product_models":[],"groups":[]},"doublure":{"products":[],"product_models":[],"groups":[]},"prem_de_proprete":{"products":["TL00166"],"product_models":[],"groups":[]},"semelle":{"products":["SM00002"],"product_models":[],"groups":[]},"tige":{"products":["PL00028"],"product_models":[],"groups":[]}},"quantified_associations":{},"metadata":{"workflow_status":"working_copy"}}' $Data = Json_Decode($response) $api_code = Json_Get($Data, ".code") $apinameobj = Json_ObjGet($Data,".values.name") $api_productname= Json_Get($apinameobj, "[0].data") ConsoleWrite("$api_code:" & $api_code & @crlf) ConsoleWrite("$api_productname:" & $api_productname& @crlf)
    1 point
×
×
  • Create New...