import json


def one_user_information(request):
    """
    Loads appropriate Json that contains Dialogflow list with user information to choose.
    :param request: POST request from "One user information" dialogflow intent
    :return: Json that contains Dialogflow list with user information to choose.
    """
    language = request.data['queryResult']['languageCode']
    if language == "pl":
        with open('api/one_user_information_pl.json') as json_file:
            response = json.load(json_file)
    else:
        with open('api/one_user_information_en.json') as json_file:
            response = json.load(json_file)
    return response