added JSON Reads/Writes for ws stream