import json


def geojson_to_bbox(geojson):
    """ Convert polygon geojson to bbox list """

    polygon = json.loads(geojson)
    bbox = [polygon['coordinates'][0][0][0], polygon['coordinates'][0][0][1], polygon['coordinates'][0][2][0], polygon['coordinates'][0][2][1]]
    return bbox