def deserialize(x, x_json): """Converts a JSON formatted string to a vector""" raise Optizelle.Exception( "The deserialize function for the vector %s not defined." % str(x))
def serialize(x): """Converts a vector to a JSON formatted string""" raise Optizelle.Exception( "The serialize function for the vector %s not defined." % str(x))