My service receives JSON from devices and decodes it to maps with string keys, such as %{"temp" => 21.5, "id" => "A7"}. I would prefer data.temp over data["temp"], so I wrote a helper that converts every key with String.to_atom/1. A reviewer said this can bring down the whole VM.
Is that true, and what is the recommended way to handle keys that come from outside the system?




