Deal a value in a Hash by a method instead of a key.

I think it's convenient to access json data.