{"id":1169,"date":"2025-01-01T10:00:00","date_gmt":"2025-01-01T09:00:00","guid":{"rendered":"https:\/\/happynumeric.com\/lexique-intelligence-artificielle\/j\/definition-json\/"},"modified":"2025-01-01T10:00:00","modified_gmt":"2025-01-01T09:00:00","slug":"definition-json","status":"publish","type":"post","link":"https:\/\/happynumeric.com\/lexique-intelligence-artificielle\/j\/definition-json\/","title":{"rendered":"Json"},"content":{"rendered":"<p>JSON, acronyme de JavaScript Object Notation, est un format d&rsquo;\u00e9change de donn\u00e9es l\u00e9ger fr\u00e9quemment utilis\u00e9 en intelligence artificielle et en prompt engineering. Qu&rsquo;est-ce que JSON ? C&rsquo;est un format textuel, lisible par l&rsquo;homme et par la machine, qui structure les donn\u00e9es de mani\u00e8re organis\u00e9e pour faciliter leur transmission et leur interpr\u00e9tation.<\/p>\n<h3>Comment fonctionne JSON ?<\/h3>\n<p>JSON s&rsquo;appuie sur une syntaxe simple, utilisant des paires cl\u00e9-valeur pour repr\u00e9senter les donn\u00e9es. Imaginez une liste de courses\u00a0: chaque item (cl\u00e9) a une quantit\u00e9 associ\u00e9e (valeur). Par exemple, \u00ab\u00a0pommes\u00a0\u00bb\u00a0: \u00ab\u00a02\u00a0\u00bb, \u00ab\u00a0lait\u00a0\u00bb\u00a0: \u00ab\u00a01\u00a0\u00bb, \u00ab\u00a0pain\u00a0\u00bb\u00a0: \u00ab\u00a01\u00a0\u00bb.  Ces donn\u00e9es sont encadr\u00e9es par des accolades <code>{}<\/code> et les cl\u00e9s sont encadr\u00e9es par des guillemets doubles. Les valeurs peuvent \u00eatre du texte (string, toujours entre guillemets), des nombres, des bool\u00e9ens (vrai\/faux), des tableaux <code>[]<\/code> ou m\u00eame d&rsquo;autres objets JSON imbriqu\u00e9s, cr\u00e9ant ainsi une structure hi\u00e9rarchique.  Cette organisation claire permet aux programmes de facilement extraire et utiliser les informations.<\/p>\n<h3>Pourquoi JSON est-il important\u00a0?<\/h3>\n<p>En IA et prompt engineering, JSON est essentiel pour structurer les requ\u00eates et les r\u00e9ponses entre l&rsquo;utilisateur et le syst\u00e8me.  Par exemple, un utilisateur peut envoyer une requ\u00eate \u00e0 une IA sous forme de JSON, sp\u00e9cifiant les param\u00e8tres d&rsquo;une image \u00e0 g\u00e9n\u00e9rer\u00a0: <code>{\"style\": \"r\u00e9aliste\", \"sujet\": \"chat\", \"couleur\": \"roux\"}<\/code>.  La r\u00e9ponse de l&rsquo;IA, contenant l&rsquo;image ou des informations sur sa g\u00e9n\u00e9ration, sera \u00e9galement structur\u00e9e en JSON.  Cette standardisation simplifie l&rsquo;interaction avec les APIs et les mod\u00e8les d&rsquo;IA.<\/p>\n<h3>Termes associ\u00e9s<\/h3>\n<ul id=\"TermesAssocies\">\n<li><a href=\"https:\/\/happynumeric.com\/lexique-intelligence-artificielle\/?s=API\">API<\/a><\/li>\n<li><a href=\"https:\/\/happynumeric.com\/lexique-intelligence-artificielle\/?s=Donn%C3%A9es+structur%C3%A9es\">Donn\u00e9es structur\u00e9es<\/a><\/li>\n<li><a href=\"https:\/\/happynumeric.com\/lexique-intelligence-artificielle\/?s=JavaScript\">JavaScript<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>JSON, acronyme de JavaScript Object Notation, est un format d&rsquo;\u00e9change de donn\u00e9es l\u00e9ger fr\u00e9quemment utilis\u00e9 en intelligence artificielle et en prompt engineering. Qu&rsquo;est-ce que JSON ? C&rsquo;est un format textuel, lisible par l&rsquo;homme et par la machine, qui structure les donn\u00e9es de mani\u00e8re organis\u00e9e pour faciliter leur transmission et leur interpr\u00e9tation. Comment fonctionne JSON ? [&hellip;]<\/p>\n","protected":false},"author":0,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_uag_custom_page_level_css":"","site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[401],"tags":[325,633,558,623],"class_list":["post-1169","post","type-post","status-publish","format-standard","hentry","category-j","tag-api","tag-donnees-structurees","tag-javascript","tag-json"],"uagb_featured_image_src":{"full":false,"thumbnail":false,"medium":false,"medium_large":false,"large":false,"1536x1536":false,"2048x2048":false},"uagb_author_info":{"display_name":"","author_link":"https:\/\/happynumeric.com\/lexique-intelligence-artificielle\/author\/"},"uagb_comment_info":0,"uagb_excerpt":"JSON, acronyme de JavaScript Object Notation, est un format d&rsquo;\u00e9change de donn\u00e9es l\u00e9ger fr\u00e9quemment utilis\u00e9 en intelligence artificielle et en prompt engineering. Qu&rsquo;est-ce que JSON ? C&rsquo;est un format textuel, lisible par l&rsquo;homme et par la machine, qui structure les donn\u00e9es de mani\u00e8re organis\u00e9e pour faciliter leur transmission et leur interpr\u00e9tation. Comment fonctionne JSON ?\u2026","_links":{"self":[{"href":"https:\/\/happynumeric.com\/lexique-intelligence-artificielle\/wp-json\/wp\/v2\/posts\/1169","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/happynumeric.com\/lexique-intelligence-artificielle\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/happynumeric.com\/lexique-intelligence-artificielle\/wp-json\/wp\/v2\/types\/post"}],"replies":[{"embeddable":true,"href":"https:\/\/happynumeric.com\/lexique-intelligence-artificielle\/wp-json\/wp\/v2\/comments?post=1169"}],"version-history":[{"count":0,"href":"https:\/\/happynumeric.com\/lexique-intelligence-artificielle\/wp-json\/wp\/v2\/posts\/1169\/revisions"}],"wp:attachment":[{"href":"https:\/\/happynumeric.com\/lexique-intelligence-artificielle\/wp-json\/wp\/v2\/media?parent=1169"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/happynumeric.com\/lexique-intelligence-artificielle\/wp-json\/wp\/v2\/categories?post=1169"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/happynumeric.com\/lexique-intelligence-artificielle\/wp-json\/wp\/v2\/tags?post=1169"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}