Retrieves the value of the given key from the json file and converts it to a float.
the value of the given key from the json file converted to a float.
the key of the value.