import json


def flatten_geojson_property(value):
    """ flattens json values for use in geojson properties
    """
    if isinstance(value, list):
        return json.dumps(value)

    return value