def _ensure_decoded(s):
    if isinstance(s, np.bytes_):
        s = s.decode('UTF-8')
    return s
Serialize to JSON dict
dataset/ETHPy150Open pydata/pandas/pandas/io/pytables.py/_ensure_decoded--crossover with--dataset/ETHPy150Open ucb-sts/sts/sts/entities/hosts.py/HostAbstractClass.to_json