complete json read & write operations