simpler way to access fields in incoming JSON message