conversion to jsn method