{"id":312,"date":"2010-06-20T00:50:19","date_gmt":"2010-06-19T22:50:19","guid":{"rendered":"http:\/\/grummfy.be\/blog\/?p=312"},"modified":"2010-06-27T00:48:56","modified_gmt":"2010-06-26T22:48:56","slug":"tri-dune-listview-tout-en-gardant-les-ids","status":"publish","type":"post","link":"https:\/\/grummfy.be\/blog\/312","title":{"rendered":"Android : Tri d&rsquo;une ListView tout en gardant les ids"},"content":{"rendered":"<p>Durant le d\u00e9veloppement du projet <a title=\"Projet B-Box\" href=\"http:\/\/code.google.com\/p\/b-box\/\" target=\"_blank\">b-box<\/a> j&rsquo;ai rencontr\u00e9 un probl\u00e8me avec mon menu. Ce menu est pr\u00e9sent sous forme de ListActivity (comprenant une ListView), \u00e9tait tri\u00e9 selon un ordre alphab\u00e9tique qui est susceptible de changer puisque l&rsquo;application peut-\u00eatre traduite.<\/p>\n<p>Au d\u00e9but, j&rsquo;ai essay\u00e9 diverses m\u00e9thodes, mais les id de position \u00e9tant perdus&#8230; pas moyen de savoir \u00e0 quoi correspond quoi.<\/p>\n<p>J&rsquo;ai donc du trouver <a href=\"http:\/\/forum.frandroid.com\/forum\/viewtopic.php?id=15727\" target=\"_blank\">une solution<\/a>, solution que je vous pr\u00e9sente.<\/p>\n<h2>But<\/h2>\n<p>Le but est de cr\u00e9er un menu sous forme de liste (ListView) dont chaque \u00e9l\u00e9ment est cliquable et permet de r\u00e9cup\u00e9rer l&rsquo;id du clic. Cet id servant \u00e0 lancer une autre Activity, par exemple.<\/p>\n<h2>Exemple<\/h2>\n<p>Tout d&rsquo;abord la classe Menu :<\/p>\n<pre lang=\"java\">package org.android.bbox;\r\n\r\nimport java.util.Comparator;\r\n\r\npublic class Menu\r\n{\r\n\tprivate int id;\r\n\tprivate String label;\r\n\r\n\tpublic Menu(int id, String label)\r\n\t{\r\n\t\tthis.id = id;\r\n\t\tthis.label = label;\r\n\t}\r\n\r\n\tpublic String getLabel()\r\n\t{\r\n\t\treturn this.label;\r\n\t}\r\n\r\n\tpublic int getId()\r\n\t{\r\n\t\treturn this.id;\r\n\t}\r\n\r\n\tpublic static Menu[] factory(String[] menus)\r\n\t{\r\n\t\tMenu[] menu = new Menu[menus.length];\r\n\t\tfor(int i = 0; i &lt; menus.length; i++)\r\n\t\t{\r\n\t\t\tmenu[ i ] = new Menu(i, menus[ i ]);\r\n\t\t}\r\n\t\treturn menu;\r\n\t}\r\n\r\n\tpublic static Comparator getComparator()\r\n\t{\r\n\t\treturn new Comparator(){\r\n\t\t\t@Override\r\n\t\t\tpublic int compare(Menu m1, Menu m2)\r\n\t\t\t{\r\n\t\t\t\treturn m1.getLabel().compareTo(m2.getLabel());\r\n\t\t\t}\r\n\t\t};\r\n\t}\r\n\r\n\tpublic String toString()\r\n\t{\r\n\t\treturn this.getLabel();\r\n\t}\r\n}\r\n<\/pre>\n<p>Et la classe de l&rsquo;activit\u00e9 :<\/p>\n<pre lang=\"java\">\/\/ ...\r\n\tpublic void onCreate(Bundle savedInstanceState)\r\n\t{\r\n\t\t\/\/...\r\n\t\tMenu[] m = Menu.factory(getResources().getStringArray(R.array.main_list_array));\/\/r\u00e9cup\u00e9ration d'un tableau de string et cr\u00e9ation d'un tableau de Menu\r\n\t\tArrayAdapter adapter = new ArrayAdapter(this, android.R.layout.simple_list_item_1, m);\/\/cr\u00e9ation de l'adaptateur permettant l'affichage\r\n\t\tadapter.sort(Menu.getComparator());\/\/tri du menu\r\n\t\tListView myList = (ListView) findViewById(android.R.id.list);\r\n\t\tmyList.setAdapter(adapter);\/\/ajotu du menu \u00e0 la ListView\r\n\t\tmyList.setOnItemClickListener(this);\r\n\t\t\/\/...\r\n\t}\r\n\r\n\t@Override\r\n\tpublic void onItemClick(AdapterView parent, View view, int position, long id)\r\n\t{\r\n\t\tSystem.out.print(position);\r\n\t\tSystem.out.print(\" | \");\r\n\t\tSystem.out.print(parent.getItemAtPosition(position));\r\n\t\tSystem.out.print(\" | \");\r\n\t\tSystem.out.print(parent.getItemAtPosition(position).getClass());\r\n\t\tSystem.out.print(\" | \");\r\n\t\tSystem.out.print(((Menu)parent.getItemAtPosition(position)).getId());\r\n\t\tSystem.out.print(\" | \");\r\n\t\tSystem.out.println(id);\r\n\t\t\/\/...\r\n\t}\r\n\/\/ ...\r\n<\/pre>\n<p><strong>Remarque<\/strong> : la m\u00e9thode toString permet l&rsquo;affichage de l&rsquo;\u00e9l\u00e9ment dans la liste.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Menu ListView dans une ListActivity, tri\u00e9 selon un ordre alphab\u00e9tique. R\u00e9cup\u00e9ration de l&rsquo;\u00e9l\u00e9ment cliqu\u00e9&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"webmentions_disabled_pings":false,"webmentions_disabled":false,"footnotes":""},"categories":[9],"tags":[102,24,109,28],"class_list":["post-312","post","type-post","status-publish","format-standard","hentry","category-dev","tag-android","tag-programmation","tag-projet","tag-trucs-et-astuces"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.9 - aioseo.com -->\n\t<meta name=\"description\" content=\"Menu ListView dans une ListActivity, tri\u00e9 selon un ordre alphab\u00e9tique. R\u00e9cup\u00e9ration de l&#039;\u00e9l\u00e9ment cliqu\u00e9.\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Grummfy\"\/>\n\t<meta name=\"google-site-verification\" content=\"d4qc9gnvtzVc9s5gDVkEqZIVZLo42Wi\/lYmFP7\/G0Kw=\" \/>\n\t<meta name=\"keywords\" content=\"android,programmation,projet,trucs et astuces,d\u00e9veloppement\" \/>\n\t<link rel=\"canonical\" href=\"https:\/\/grummfy.be\/blog\/312\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 4.9.9\" \/>\n\t\t<meta property=\"og:locale\" content=\"fr_FR\" \/>\n\t\t<meta property=\"og:site_name\" content=\"Grummfy&#039;s project\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"Grummfy&#039;s project .:. Tri d&#039;une ListView tout en gardant les ids\" \/>\n\t\t<meta property=\"og:description\" content=\"Menu ListView dans une ListActivity, tri\u00e9 selon un ordre alphab\u00e9tique. R\u00e9cup\u00e9ration de l&#039;\u00e9l\u00e9ment cliqu\u00e9.\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/grummfy.be\/blog\/312\" \/>\n\t\t<meta property=\"fb:admins\" content=\"580961199\" \/>\n\t\t<meta property=\"article:tag\" content=\"android\" \/>\n\t\t<meta property=\"article:tag\" content=\"programmation\" \/>\n\t\t<meta property=\"article:tag\" content=\"projet\" \/>\n\t\t<meta property=\"article:tag\" content=\"trucs et astuces\" \/>\n\t\t<meta property=\"article:tag\" content=\"d\u00e9veloppement\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2010-06-19T22:50:19+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2010-06-26T22:48:56+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:site\" content=\"@Grummfy\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Grummfy&#039;s project .:. Tri d&#039;une ListView tout en gardant les ids\" \/>\n\t\t<meta name=\"twitter:description\" content=\"Menu ListView dans une ListActivity, tri\u00e9 selon un ordre alphab\u00e9tique. R\u00e9cup\u00e9ration de l&#039;\u00e9l\u00e9ment cliqu\u00e9.\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/grummfy.be\\\/blog\\\/312#article\",\"name\":\"Grummfy's project .:. Tri d'une ListView tout en gardant les ids\",\"headline\":\"Android : Tri d&rsquo;une ListView tout en gardant les ids\",\"author\":{\"@id\":\"https:\\\/\\\/grummfy.be\\\/blog\\\/author\\\/admin#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/grummfy.be\\\/blog\\\/#organization\"},\"datePublished\":\"2010-06-20T00:50:19+02:00\",\"dateModified\":\"2010-06-27T00:48:56+02:00\",\"inLanguage\":\"fr-BE\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/grummfy.be\\\/blog\\\/312#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/grummfy.be\\\/blog\\\/312#webpage\"},\"articleSection\":\"D\\u00e9veloppement, android, programmation, Projet, trucs et astuces\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/grummfy.be\\\/blog\\\/312#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/grummfy.be\\\/blog#listItem\",\"position\":1,\"name\":\"Accueil\",\"item\":\"https:\\\/\\\/grummfy.be\\\/blog\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/grummfy.be\\\/blog\\\/cat\\\/dev#listItem\",\"name\":\"D\\u00e9veloppement\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/grummfy.be\\\/blog\\\/cat\\\/dev#listItem\",\"position\":2,\"name\":\"D\\u00e9veloppement\",\"item\":\"https:\\\/\\\/grummfy.be\\\/blog\\\/cat\\\/dev\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/grummfy.be\\\/blog\\\/312#listItem\",\"name\":\"Android : Tri d&rsquo;une ListView tout en gardant les ids\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/grummfy.be\\\/blog#listItem\",\"name\":\"Accueil\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/grummfy.be\\\/blog\\\/312#listItem\",\"position\":3,\"name\":\"Android : Tri d&rsquo;une ListView tout en gardant les ids\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/grummfy.be\\\/blog\\\/cat\\\/dev#listItem\",\"name\":\"D\\u00e9veloppement\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/grummfy.be\\\/blog\\\/#organization\",\"name\":\"Grummfy's project\",\"description\":\"Mes projets, mes r\\u00eaves, mes envies, ...\",\"url\":\"https:\\\/\\\/grummfy.be\\\/blog\\\/\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/grummfy.be\\\/blog\\\/author\\\/admin#author\",\"url\":\"https:\\\/\\\/grummfy.be\\\/blog\\\/author\\\/admin\",\"name\":\"Grummfy\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/grummfy.be\\\/blog\\\/312#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/97f073e7de2fb1e9d5c5329eb7db2c6de1c5a80e8cfe9b1233473f78a1c908f6?s=96&d=identicon&r=g\",\"width\":96,\"height\":96,\"caption\":\"Grummfy\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/grummfy.be\\\/blog\\\/312#webpage\",\"url\":\"https:\\\/\\\/grummfy.be\\\/blog\\\/312\",\"name\":\"Grummfy's project .:. Tri d'une ListView tout en gardant les ids\",\"description\":\"Menu ListView dans une ListActivity, tri\\u00e9 selon un ordre alphab\\u00e9tique. R\\u00e9cup\\u00e9ration de l'\\u00e9l\\u00e9ment cliqu\\u00e9.\",\"inLanguage\":\"fr-BE\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/grummfy.be\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/grummfy.be\\\/blog\\\/312#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/grummfy.be\\\/blog\\\/author\\\/admin#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/grummfy.be\\\/blog\\\/author\\\/admin#author\"},\"datePublished\":\"2010-06-20T00:50:19+02:00\",\"dateModified\":\"2010-06-27T00:48:56+02:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/grummfy.be\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/grummfy.be\\\/blog\\\/\",\"name\":\"Grummfy's project\",\"description\":\"Mes projets, mes r\\u00eaves, mes envies, ...\",\"inLanguage\":\"fr-BE\",\"publisher\":{\"@id\":\"https:\\\/\\\/grummfy.be\\\/blog\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Grummfy's project .:. Tri d'une ListView tout en gardant les ids","description":"Menu ListView dans une ListActivity, tri\u00e9 selon un ordre alphab\u00e9tique. R\u00e9cup\u00e9ration de l'\u00e9l\u00e9ment cliqu\u00e9.","canonical_url":"https:\/\/grummfy.be\/blog\/312","robots":"max-image-preview:large","keywords":"android,programmation,projet,trucs et astuces,d\u00e9veloppement","webmasterTools":{"google-site-verification":"d4qc9gnvtzVc9s5gDVkEqZIVZLo42Wi\/lYmFP7\/G0Kw=","miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/grummfy.be\/blog\/312#article","name":"Grummfy's project .:. Tri d'une ListView tout en gardant les ids","headline":"Android : Tri d&rsquo;une ListView tout en gardant les ids","author":{"@id":"https:\/\/grummfy.be\/blog\/author\/admin#author"},"publisher":{"@id":"https:\/\/grummfy.be\/blog\/#organization"},"datePublished":"2010-06-20T00:50:19+02:00","dateModified":"2010-06-27T00:48:56+02:00","inLanguage":"fr-BE","mainEntityOfPage":{"@id":"https:\/\/grummfy.be\/blog\/312#webpage"},"isPartOf":{"@id":"https:\/\/grummfy.be\/blog\/312#webpage"},"articleSection":"D\u00e9veloppement, android, programmation, Projet, trucs et astuces"},{"@type":"BreadcrumbList","@id":"https:\/\/grummfy.be\/blog\/312#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/grummfy.be\/blog#listItem","position":1,"name":"Accueil","item":"https:\/\/grummfy.be\/blog","nextItem":{"@type":"ListItem","@id":"https:\/\/grummfy.be\/blog\/cat\/dev#listItem","name":"D\u00e9veloppement"}},{"@type":"ListItem","@id":"https:\/\/grummfy.be\/blog\/cat\/dev#listItem","position":2,"name":"D\u00e9veloppement","item":"https:\/\/grummfy.be\/blog\/cat\/dev","nextItem":{"@type":"ListItem","@id":"https:\/\/grummfy.be\/blog\/312#listItem","name":"Android : Tri d&rsquo;une ListView tout en gardant les ids"},"previousItem":{"@type":"ListItem","@id":"https:\/\/grummfy.be\/blog#listItem","name":"Accueil"}},{"@type":"ListItem","@id":"https:\/\/grummfy.be\/blog\/312#listItem","position":3,"name":"Android : Tri d&rsquo;une ListView tout en gardant les ids","previousItem":{"@type":"ListItem","@id":"https:\/\/grummfy.be\/blog\/cat\/dev#listItem","name":"D\u00e9veloppement"}}]},{"@type":"Organization","@id":"https:\/\/grummfy.be\/blog\/#organization","name":"Grummfy's project","description":"Mes projets, mes r\u00eaves, mes envies, ...","url":"https:\/\/grummfy.be\/blog\/"},{"@type":"Person","@id":"https:\/\/grummfy.be\/blog\/author\/admin#author","url":"https:\/\/grummfy.be\/blog\/author\/admin","name":"Grummfy","image":{"@type":"ImageObject","@id":"https:\/\/grummfy.be\/blog\/312#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/97f073e7de2fb1e9d5c5329eb7db2c6de1c5a80e8cfe9b1233473f78a1c908f6?s=96&d=identicon&r=g","width":96,"height":96,"caption":"Grummfy"}},{"@type":"WebPage","@id":"https:\/\/grummfy.be\/blog\/312#webpage","url":"https:\/\/grummfy.be\/blog\/312","name":"Grummfy's project .:. Tri d'une ListView tout en gardant les ids","description":"Menu ListView dans une ListActivity, tri\u00e9 selon un ordre alphab\u00e9tique. R\u00e9cup\u00e9ration de l'\u00e9l\u00e9ment cliqu\u00e9.","inLanguage":"fr-BE","isPartOf":{"@id":"https:\/\/grummfy.be\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/grummfy.be\/blog\/312#breadcrumblist"},"author":{"@id":"https:\/\/grummfy.be\/blog\/author\/admin#author"},"creator":{"@id":"https:\/\/grummfy.be\/blog\/author\/admin#author"},"datePublished":"2010-06-20T00:50:19+02:00","dateModified":"2010-06-27T00:48:56+02:00"},{"@type":"WebSite","@id":"https:\/\/grummfy.be\/blog\/#website","url":"https:\/\/grummfy.be\/blog\/","name":"Grummfy's project","description":"Mes projets, mes r\u00eaves, mes envies, ...","inLanguage":"fr-BE","publisher":{"@id":"https:\/\/grummfy.be\/blog\/#organization"}}]},"og:locale":"fr_FR","og:site_name":"Grummfy's project","og:type":"article","og:title":"Grummfy's project .:. Tri d'une ListView tout en gardant les ids","og:description":"Menu ListView dans une ListActivity, tri\u00e9 selon un ordre alphab\u00e9tique. R\u00e9cup\u00e9ration de l'\u00e9l\u00e9ment cliqu\u00e9.","og:url":"https:\/\/grummfy.be\/blog\/312","fb:admins":"580961199","article:tag":["android","programmation","projet","trucs et astuces","d\u00e9veloppement"],"article:published_time":"2010-06-19T22:50:19+00:00","article:modified_time":"2010-06-26T22:48:56+00:00","twitter:card":"summary","twitter:site":"@Grummfy","twitter:title":"Grummfy's project .:. Tri d'une ListView tout en gardant les ids","twitter:description":"Menu ListView dans une ListActivity, tri\u00e9 selon un ordre alphab\u00e9tique. R\u00e9cup\u00e9ration de l'\u00e9l\u00e9ment cliqu\u00e9."},"aioseo_meta_data":{"post_id":"312","title":"#site_title .:. Tri d'une ListView tout en gardant les ids","description":"Menu ListView dans une ListActivity, tri\u00e9 selon un ordre alphab\u00e9tique. R\u00e9cup\u00e9ration de l'\u00e9l\u00e9ment cliqu\u00e9.","keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[],"defaultGraph":"","defaultPostTypeGraph":""},"schema_type":null,"schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"location":null,"local_seo":null,"breadcrumb_settings":null,"limit_modified_date":false,"ai":null,"created":"2021-01-21 15:11:40","updated":"2025-06-04 00:24:43","seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/grummfy.be\/blog\" title=\"Accueil\">Accueil<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/grummfy.be\/blog\/cat\/dev\" title=\"D\u00e9veloppement\">D\u00e9veloppement<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tAndroid : Tri d\u2019une ListView tout en gardant les ids\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Accueil","link":"https:\/\/grummfy.be\/blog"},{"label":"D\u00e9veloppement","link":"https:\/\/grummfy.be\/blog\/cat\/dev"},{"label":"Android : Tri d&rsquo;une ListView tout en gardant les ids","link":"https:\/\/grummfy.be\/blog\/312"}],"_links":{"self":[{"href":"https:\/\/grummfy.be\/blog\/wp-json\/wp\/v2\/posts\/312","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/grummfy.be\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/grummfy.be\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/grummfy.be\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/grummfy.be\/blog\/wp-json\/wp\/v2\/comments?post=312"}],"version-history":[{"count":3,"href":"https:\/\/grummfy.be\/blog\/wp-json\/wp\/v2\/posts\/312\/revisions"}],"predecessor-version":[{"id":316,"href":"https:\/\/grummfy.be\/blog\/wp-json\/wp\/v2\/posts\/312\/revisions\/316"}],"wp:attachment":[{"href":"https:\/\/grummfy.be\/blog\/wp-json\/wp\/v2\/media?parent=312"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/grummfy.be\/blog\/wp-json\/wp\/v2\/categories?post=312"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/grummfy.be\/blog\/wp-json\/wp\/v2\/tags?post=312"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}