It seems strange (to me)--maybe in a good way, but would it be preferable to use the JSON literal over the if statement (for the sake of the argument assume in javascript if returns a value)?
val = if (person === "Homer") { return expr } else if (person === "Bart") { return expr } ...
----
val = { "Homer": expr ,
"Bart": expr , ... }[person];
Would the literal be simpler because it uses data over syntax, or rules instead of conditionals?