Adding session read/write ability

json support