def json_encode(value):
    return json.dumps(value, allow_nan=False).replace("</", "<\\/")
Gets new allocation pools and formats them correctly
dataset/ETHPy150Open nephics/tornado-couchdb/couch/couch.py/json_encode--crossover with--dataset/ETHPy150Open openstack/neutron/neutron/db/db_base_plugin_v2.py/NeutronDbPluginV2._update_allocation_pools