For reading purposes I would like to have a specific key order into the json file.
I know that map's key doesn't have any order and then we should not rely on that, but since Poison is not able to encode proplists I don't see how to do this.
iex(1)> %{from: "EUR", to: "USD", rate: 0.845} |> Poison.encode!
"{\"to\":\"USD\",\"rate\":0.845,\"from\":\"EUR\"}"
The result I would like is :
"{\"from\":\"EUR\", \"to\":\"USD\", \"rate\":0.845}"
Which structure should I use in order to achieve this with Poison ?