What's the difference in how you can access Map fields?

Hey @xgeek116

body["test"]

This one won’t work, because it looks for a key that is "test". "test" is a string, but your key is :test which is an atom.

body[:test]

This will work and return the value. If you put in a key that does not exist in the map like body[:hello] it will return nil.

body.test

This will also work and return the value. If you use a key that does not exist like body.hello it will raise an exception.