implement get_value_by_key()

Signed-off-by: Janos Laube <janos.dev@gmail.com>