def get_json_list(list_of_strings, include_brackets=True):
    """
    Convert a list of strings into a single string representation, suitable for
    inclusion in GraphQL queries.

    Parameters
    ---------
    list_of_strings : list of str
        Strings to convert to single string
    include_backets : bool
        Whether to include square braces in the returned string

    Returns
    -------
    stringified_list : str
        String representation of the input list

    Example
    -------
    >>> get_json_list(['cat', 'dog'])
    '["cat", "dog"]'

    >>> get_json_list(['cat', 'dog'], include_brackets=False)
    '"cat", "dog"'
    """
    json_list = ', '.join('"%s"' % string for string in list_of_strings)
    if include_brackets:
        json_list = '[' + json_list + ']'
    return json_list