fixed read and write but json not showing