Turn text into json?

I'm trying to extract the course fees but Ideally in json format. I've tried using json but it can't seem to sort it into the correct format.

text output:
'Home full-time £4712 EU full-time £18000 International full-time £18000 Home part-time £2356 EU part-time £9000 International part-time £9000'

Is there a way to be able to format it like this?

{"Home": {"full-time": "4712", "part-time": "2356"}, "EU": {"full-time": "18000", "part-time": "9000"}, "International": {"full-time": "18000", "part-time": "9000"}}

Url: https://www.kent.ac.uk/courses/postgraduate/1/actuarial-science

Sitemap:

{"_id":"ec_pgds_10007150","startUrl":["https://www.kent.ac.uk/courses/postgraduate"],"selectors":[{"id":"Course_landing_page","multiple":true,"parentSelectors":["_root"],"selector":".search-filters__course-title a","type":"SelectorLink"},{"id":"Course_name","multiple":false,"parentSelectors":["Course_landing_page"],"regex":"","selector":"h1","type":"SelectorText"},{"id":"Fees","multiple":false,"parentSelectors":["Course_landing_page"],"regex":"","selector":"ul.fee-highlight","type":"SelectorText"},{"id":"Level_of_study","multiple":false,"parentSelectors":["Course_landing_page"],"regex":"","selector":"li:nth-of-type(1) div.key-facts__text","type":"SelectorText"},{"id":"Course_duration","multiple":false,"parentSelectors":["Course_landing_page"],"regex":"","selector":".panel--spaced-top p","type":"SelectorText"}]}