json writen to sys