First roughly working version of the json fetch.