Move the json into the get_data function.