<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  </head>
  <body>
    Hi API gurus,<br>
    <br>
    I assume, the search box functionality in the species page of gbif
    homepage (e.g.: <a moz-do-not-send="true"
      href="https://www.gbif.org/species/5298708"
      class="moz-txt-link-freetext">https://www.gbif.org/species/5298708</a>)
    is based on "suggest". There each result contains the scientific
    name and the full taxonomic hierarchy e.g. "<span class="ng-binding">Iris
      pumila subsp. attica (Boiss. & Heldr.) K.Richt.</span> <span
      class="small discreet ng-scope ng-binding" dir="auto">Subspecies</span><span
      class="ng-binding ng-scope">  | Plantae > </span><span
      class="ng-binding ng-scope"> Tracheophyta > </span><span
      class="ng-binding ng-scope"> Liliopsida > </span><span
      class="ng-binding ng-scope"> Asparagales > </span><span
      class="ng-binding ng-scope"> Iridaceae > </span><span
      class="ng-binding ng-scope"> Iris > </span><span
      class="ng-binding ng-scope" style=""> Iris pumila".<br>
      <br>
      My question: how is the hierarchy implemented? Is it based on "</span><span
      class="ng-binding ng-scope" style="">higherClassificationMap"?
      How?<br>
      <br>
      When I play with the suggest api, the XMLHttpRequest responseText
      in raw text format contains the taxonomic hierarchy correctly
      (i.e. the physical order of the entries in "</span><span
      class="ng-binding ng-scope" style=""><span class="ng-binding
        ng-scope" style=""></span><span class="ng-binding ng-scope"
        style="">higherClassificationMap</span>" is correct).
      Unfortunately after JSON.parse the resulting javascript object
      does not hold any information about the physical order of the
      key/value pairs.<br>
      <br>
      Is there any smart way to overcome this, or shall I hardcode the
      hierarchy manually?<br>
      <br>
      Thanks in advance.<br>
      <br>
      József Szlamka<br>
      <br>
    </span>
  </body>
</html>