<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def json_get(serialized_object, field):
 """ This emulates the HSTORE `->` get value operation. It get value from JSON serialized column by given key and return `null` if not present. Key can be either an integer for array index access or a string for object field access. :return: JSON serialized value of key in object """

    # return null if serialized_object is null or "serialized null"
    if serialized_object is None:
        return None
    obj = json.loads(serialized_object)
    if obj is None:
        return None

    if isinstance(field, int):
        # array index access
        res = obj[field] if 0 <= field < len(obj) else None
    else:
        # object field access
        res = obj.get(field)

    if not isinstance(res, (int, float, string_types)):
        res = json.dumps(res)

    return res