Use LinkedHashMap instead of HashMap

Using HashMap leads to loss of keys order when converting json to xml or xml to json