Use KVC

Replace the use of `get_path` and `json_get_key` with KVC library.