json order fixer code
json order fixer code

This will make sure the JSON orders in database are valid and fix it
otherwise.

fixes #2445

fusioninventory/fusioninventory-for-glpi,TECLIB/fusioninventory-for-glpi,TECLIB/fusioninventory-for-glpi,itinside/fusioninventory-for-glpi,orthagh/fusioninventory-for-glpi,dethegeek/fusioninventory-for-glpi,fusioninventory/fusioninventory-for-glpi,itinside/fusioninventory-for-glpi,mohierf/fusioninventory-for-glpi,TECLIB/fusioninventory-for-glpi,dethegeek/fusioninventory-for-glpi,mohierf/fusioninventory-for-glpi,dethegeek/fusioninventory-for-glpi,orthagh/fusioninventory-for-glpi,mohierf/fusioninventory-for-glpi,fusioninventory/fusioninventory-for-glpi,mohierf/fusioninventory-for-glpi,fusioninventory/fusioninventory-for-glpi,TECLIB/fusioninventory-for-glpi,fusioninventory/fusioninventory-for-glpi,itinside/fusioninventory-for-glpi,TECLIB/fusioninventory-for-glpi,fusioninventory/fusioninventory-for-glpi,mohierf/fusioninventory-for-glpi,orthagh/fusioninventory-for-glpi,itinside/fusioninventory-for-glpi,mohierf/fusioninventory-for-glpi,dethegeek/fusioninventory-for-glpi,orthagh/fusioninventory-for-glpi,TECLIB/fusioninventory-for-glpi,itinside/fusioninventory-for-glpi,orthagh/fusioninventory-for-glpi