def check_parse_type(raw):
    """ Checks the type for which the given value should be parsed. Currently
    only detects strings and arrays."""
    if raw.strip()[0] == '[':
        return 'array'
    else:
        return 'string'